1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

Do not sink getresult.

llvm-svn: 50600
This commit is contained in:
Devang Patel 2008-05-03 00:36:30 +00:00
parent 4b2359feec
commit b3112b4417

View File

@ -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) {