projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
201ebe3
)
Do not sink getresult.
author
Devang Patel
<dpatel@apple.com>
Sat, 3 May 2008 00:36:30 +0000
(
00:36
+0000)
committer
Devang Patel
<dpatel@apple.com>
Sat, 3 May 2008 00:36:30 +0000
(
00:36
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50600
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/InstructionCombining.cpp
b/lib/Transforms/Scalar/InstructionCombining.cpp
index d7a5f7be5c5a5964c53544db8839cd3d1e045d4c..6b1da0d25656ad071a4827516ce04b756f369f50 100644
(file)
--- a/
lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/
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) {