diff options
author | Devang Patel <dpatel@apple.com> | 2011-05-18 18:01:27 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-05-18 18:01:27 +0000 |
commit | 3e410c6607192bbf28ba3708245cb70a0f983556 (patch) | |
tree | 9628d64c390caed6eeb50b33a35cb1238b7e34c3 /lib/Transforms/Utils/SimplifyCFG.cpp | |
parent | 1eca76a611859d17f8be2c37bab78ccfd95e1f46 (diff) |
Set up IRBuilder for use during simplification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131545 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/SimplifyCFG.cpp')
-rw-r--r-- | lib/Transforms/Utils/SimplifyCFG.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index bd2c1eed96..b65a235091 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/lib/Transforms/Utils/SimplifyCFG.cpp @@ -32,6 +32,7 @@ #include "llvm/Support/CommandLine.h" #include "llvm/Support/ConstantRange.h" #include "llvm/Support/Debug.h" +#include "llvm/Support/IRBuilder.h" #include "llvm/Support/raw_ostream.h" #include <algorithm> #include <set> @@ -2638,6 +2639,8 @@ bool SimplifyCFGOpt::run(BasicBlock *BB) { if (MergeBlockIntoPredecessor(BB)) return true; + IRBuilder<> Builder(BB); + // If there is a trivial two-entry PHI node in this basic block, and we can // eliminate it, do so now. if (PHINode *PN = dyn_cast<PHINode>(BB->begin())) |