mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-26 07:34:06 +00:00
don't sink anything with side effects, this makes lots of stuff work, but sinks almost nothing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45617 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2a3e08b596
commit
ba84ed7e92
@ -130,6 +130,10 @@ bool MachineSinking::ProcessBlock(MachineBasicBlock &MBB) {
|
|||||||
/// SinkInstruction - Determine whether it is safe to sink the specified machine
|
/// SinkInstruction - Determine whether it is safe to sink the specified machine
|
||||||
/// instruction out of its current block into a successor.
|
/// instruction out of its current block into a successor.
|
||||||
bool MachineSinking::SinkInstruction(MachineInstr *MI) {
|
bool MachineSinking::SinkInstruction(MachineInstr *MI) {
|
||||||
|
// Don't sink things with side-effects we don't understand.
|
||||||
|
if (TII->hasUnmodelledSideEffects(MI))
|
||||||
|
return false;
|
||||||
|
|
||||||
// Loop over all the operands of the specified instruction. If there is
|
// Loop over all the operands of the specified instruction. If there is
|
||||||
// anything we can't handle, bail out.
|
// anything we can't handle, bail out.
|
||||||
MachineBasicBlock *ParentBlock = MI->getParent();
|
MachineBasicBlock *ParentBlock = MI->getParent();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user