[llvm-commits] [llvm] r50600 - /llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp
Devang Patel
dpatel at apple.com
Fri May 2 17:36:30 PDT 2008
Author: dpatel
Date: Fri May 2 19:36:30 2008
New Revision: 50600
URL: http://llvm.org/viewvc/llvm-project?rev=50600&view=rev
Log:
Do not sink getresult.
Modified:
llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp?rev=50600&r1=50599&r2=50600&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp Fri May 2 19:36:30 2008
@@ -11389,7 +11389,9 @@
}
// See if we can trivially sink this instruction to a successor basic block.
- if (I->hasOneUse()) {
+ // FIXME: Remove GetREsultInst test when first class support for aggregates is
+ // implemented.
+ if (I->hasOneUse() && !isa<GetResultInst>(I)) {
BasicBlock *BB = I->getParent();
BasicBlock *UserParent = cast<Instruction>(I->use_back())->getParent();
if (UserParent != BB) {
More information about the llvm-commits
mailing list