[llvm-commits] [llvm] r132275 - /llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp
John McCall
rjmccall at apple.com
Sat May 28 20:01:09 PDT 2011
Author: rjmccall
Date: Sat May 28 22:01:09 2011
New Revision: 132275
URL: http://llvm.org/viewvc/llvm-project?rev=132275&view=rev
Log:
Fix this to work correctly with phis; test case to follow if this successfully
fixes self-host.
Modified:
llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp
Modified: llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp?rev=132275&r1=132274&r2=132275&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp Sat May 28 22:01:09 2011
@@ -189,6 +189,7 @@
PHINode *innerPhi = PHINode::Create(outerPhi->getType(), phiCapacity,
outerPhi->getName() + ".lpad-body",
insertPoint);
+ outerPhi->replaceAllUsesWith(innerPhi);
innerPhi->addIncoming(outerPhi, OuterUnwindDest);
}
More information about the llvm-commits
mailing list