mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-19 06:31:18 +00:00
Do not force asm's to be chained if they don't touch
memory and aren't volatile. This was interfering with good scheduling. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69008 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
87d696a4d2
commit
ec65a7d89b
@ -5439,6 +5439,9 @@ void SelectionDAGLowering::visitInlineAsm(CallSite CS) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setValue(CS.getInstruction(), Val);
|
setValue(CS.getInstruction(), Val);
|
||||||
|
// Don't need to use this as a chain in this case.
|
||||||
|
if (!IA->hasSideEffects() && !hasMemory && IndirectStoresToEmit.empty())
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<std::pair<SDValue, Value*> > StoresToEmit;
|
std::vector<std::pair<SDValue, Value*> > StoresToEmit;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user