[llvm-commits] [llvm] r50599 - /llvm/branches/Apple/Tak/lib/Transforms/Scalar/InstructionCombining.cpp

Devang Patel dpatel at apple.com
Fri May 2 17:34:18 PDT 2008


Author: dpatel
Date: Fri May  2 19:34:18 2008
New Revision: 50599

URL: http://llvm.org/viewvc/llvm-project?rev=50599&view=rev
Log:
Do not sink getresult.

Modified:
    llvm/branches/Apple/Tak/lib/Transforms/Scalar/InstructionCombining.cpp

Modified: llvm/branches/Apple/Tak/lib/Transforms/Scalar/InstructionCombining.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Tak/lib/Transforms/Scalar/InstructionCombining.cpp?rev=50599&r1=50598&r2=50599&view=diff

==============================================================================
--- llvm/branches/Apple/Tak/lib/Transforms/Scalar/InstructionCombining.cpp (original)
+++ llvm/branches/Apple/Tak/lib/Transforms/Scalar/InstructionCombining.cpp Fri May  2 19:34:18 2008
@@ -11279,7 +11279,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