summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-05-03 00:36:30 +0000
committerDevang Patel <dpatel@apple.com>2008-05-03 00:36:30 +0000
commita1ec89fbf1517c70bd12d5e3863280c53302da03 (patch)
tree0ca1517bdb8f62b6277729dd8708f2cc77ea2d34 /llvm/lib/Transforms
parent1108d6eef3f7c255d0ef1015950791c6d0092340 (diff)
downloadbcm5719-llvm-a1ec89fbf1517c70bd12d5e3863280c53302da03.tar.gz
bcm5719-llvm-a1ec89fbf1517c70bd12d5e3863280c53302da03.zip
Do not sink getresult.
llvm-svn: 50600
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/InstructionCombining.cpp4
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) {
OpenPOWER on IntegriCloud