diff options
author | Devang Patel <dpatel@apple.com> | 2008-05-03 00:36:30 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2008-05-03 00:36:30 +0000 |
commit | a1ec89fbf1517c70bd12d5e3863280c53302da03 (patch) | |
tree | 0ca1517bdb8f62b6277729dd8708f2cc77ea2d34 /llvm/lib | |
parent | 1108d6eef3f7c255d0ef1015950791c6d0092340 (diff) | |
download | bcm5719-llvm-a1ec89fbf1517c70bd12d5e3863280c53302da03.tar.gz bcm5719-llvm-a1ec89fbf1517c70bd12d5e3863280c53302da03.zip |
Do not sink getresult.
llvm-svn: 50600
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index d7a5f7be5c5..6b1da0d2565 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp @@ -11389,7 +11389,9 @@ bool InstCombiner::DoOneIteration(Function &F, unsigned Iteration) { } // 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) { |