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 | 15ad6761da12f2a955f3c3e0611a7bf9349c217c (patch) | |
tree | c86678ece0d3224b9a3a73f1fe02287564c842f4 /llvm/lib | |
parent | 0b43b9ee98efbc623f7129c1fd4fb3f5273feb80 (diff) | |
download | bcm5719-llvm-15ad6761da12f2a955f3c3e0611a7bf9349c217c.tar.gz bcm5719-llvm-15ad6761da12f2a955f3c3e0611a7bf9349c217c.zip |
Set up IRBuilder for use during simplification.
llvm-svn: 131545
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Transforms/Utils/SimplifyCFG.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp index bd2c1eed96f..b65a235091b 100644 --- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/llvm/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())) |