projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Avoid creating redundant PHIs in SSAUpdater::GetValueInMiddleOfBlock.
[oota-llvm.git]
/
lib
/
Transforms
/
Utils
/
Mem2Reg.cpp
diff --git
a/lib/Transforms/Utils/Mem2Reg.cpp
b/lib/Transforms/Utils/Mem2Reg.cpp
index 941660436b46c349dffb78328d54b9bf297afa14..99203b662120eaa697ee6a243d2b76122d810010 100644
(file)
--- a/
lib/Transforms/Utils/Mem2Reg.cpp
+++ b/
lib/Transforms/Utils/Mem2Reg.cpp
@@
-73,7
+73,7
@@
bool PromotePass::runOnFunction(Function &F) {
if (Allocas.empty()) break;
- PromoteMemToReg(Allocas, DT, DF
, F.getContext()
);
+ PromoteMemToReg(Allocas, DT, DF);
NumPromoted += Allocas.size();
Changed = true;
}