projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1eca76a
)
Set up IRBuilder for use during simplification.
author
Devang Patel
<dpatel@apple.com>
Wed, 18 May 2011 18:01:27 +0000
(18:01 +0000)
committer
Devang Patel
<dpatel@apple.com>
Wed, 18 May 2011 18:01:27 +0000
(18:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131545
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Utils/SimplifyCFG.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Utils/SimplifyCFG.cpp
b/lib/Transforms/Utils/SimplifyCFG.cpp
index bd2c1eed96fcc1918b34f2fa225c3bbf4b64c04b..b65a235091b07399c82590f6f5d5f929336fea38 100644
(file)
--- 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()))