summaryrefslogtreecommitdiffstats
path: root/llvm/lib/LTO/LTOCodeGenerator.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2015-01-20 22:44:35 +0000
committerChandler Carruth <chandlerc@gmail.com>2015-01-20 22:44:35 +0000
commit1edb9d63e922b9922311e53f2afa5a269564f136 (patch)
treeadfd2265437c0f688bd23a5bc63c957b4ab03058 /llvm/lib/LTO/LTOCodeGenerator.cpp
parent6746950645274d7a96855bcbb3e6e65008f25f3b (diff)
downloadbcm5719-llvm-1edb9d63e922b9922311e53f2afa5a269564f136.tar.gz
bcm5719-llvm-1edb9d63e922b9922311e53f2afa5a269564f136.zip
[PM] Separate the InstCombiner from its pass.
This creates a small internal pass which runs the InstCombiner over a function. This is the hard part of porting InstCombine to the new pass manager, as at this point none of the code in InstCombine has access to a Pass object any longer. The resulting interface for the InstCombiner is pretty terrible. I'm not planning on leaving it that way. The key thing missing is that we need to separate the worklist from the combiner a touch more. Once that's done, it should be possible for *any* part of LLVM to just create a worklist with instructions, populate it, and then combine it until empty. The pass will just be the (obvious and important) special case of doing that for an entire function body. For now, this is the first increment of factoring to make all of this work. llvm-svn: 226618
Diffstat (limited to 'llvm/lib/LTO/LTOCodeGenerator.cpp')
-rw-r--r--llvm/lib/LTO/LTOCodeGenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/LTO/LTOCodeGenerator.cpp b/llvm/lib/LTO/LTOCodeGenerator.cpp
index 5cfbb592ace..ceaddce0bd4 100644
--- a/llvm/lib/LTO/LTOCodeGenerator.cpp
+++ b/llvm/lib/LTO/LTOCodeGenerator.cpp
@@ -108,7 +108,7 @@ void LTOCodeGenerator::initializeLTOPasses() {
initializeGlobalOptPass(R);
initializeConstantMergePass(R);
initializeDAHPass(R);
- initializeInstCombinerPass(R);
+ initializeInstructionCombiningPassPass(R);
initializeSimpleInlinerPass(R);
initializePruneEHPass(R);
initializeGlobalDCEPass(R);
OpenPOWER on IntegriCloud