You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.7 KiB
Diff
40 lines
1.7 KiB
Diff
diff --git a/lib/CodeGen/BranchFolding.cpp b/lib/CodeGen/BranchFolding.cpp
|
|
index 027f091..8bf831d 100644
|
|
--- a/lib/CodeGen/BranchFolding.cpp
|
|
+++ b/lib/CodeGen/BranchFolding.cpp
|
|
@@ -453,8 +453,10 @@ MachineBasicBlock *BranchFolder::SplitMBBAt(MachineBasicBlock &CurMBB,
|
|
|
|
// Add the new block to the funclet.
|
|
const auto &FuncletI = FuncletMembership.find(&CurMBB);
|
|
- if (FuncletI != FuncletMembership.end())
|
|
- FuncletMembership[NewMBB] = FuncletI->second;
|
|
+ if (FuncletI != FuncletMembership.end()) {
|
|
+ auto x = FuncletI->second;
|
|
+ FuncletMembership[NewMBB] = x;
|
|
+ }
|
|
|
|
return NewMBB;
|
|
}
|
|
diff --git a/lib/Transforms/IPO/PassManagerBuilder.cpp b/lib/Transforms/IPO/PassManagerBuilder.cpp
|
|
index a659cc6..ea80261 100644
|
|
--- a/lib/Transforms/IPO/PassManagerBuilder.cpp
|
|
+++ b/lib/Transforms/IPO/PassManagerBuilder.cpp
|
|
@@ -589,7 +589,7 @@ void PassManagerBuilder::addLTOOptimizationPasses(legacy::PassManagerBase &PM) {
|
|
PM.add(createConstantMergePass());
|
|
|
|
// Remove unused arguments from functions.
|
|
- PM.add(createDeadArgEliminationPass());
|
|
+ //PM.add(createDeadArgEliminationPass());
|
|
|
|
// Reduce the code after globalopt and ipsccp. Both can open up significant
|
|
// simplification opportunities, and both can propagate functions through
|
|
@@ -614,7 +614,7 @@ void PassManagerBuilder::addLTOOptimizationPasses(legacy::PassManagerBase &PM) {
|
|
|
|
// If we didn't decide to inline a function, check to see if we can
|
|
// transform it to pass arguments by value instead of by reference.
|
|
- PM.add(createArgumentPromotionPass());
|
|
+ //PM.add(createArgumentPromotionPass());
|
|
|
|
// The IPO passes may leave cruft around. Clean up after them.
|
|
PM.add(createInstructionCombiningPass());
|