mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
Do not sink getresult.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50600 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
201ebe3899
commit
f944c9a19e
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user