don't sink anything with side effects, this makes lots of stuff work, but sinks almost nothing.

llvm-svn: 45617
This commit is contained in:
Chris Lattner 2008-01-05 02:33:22 +00:00
parent 880b080887
commit d11ca169e7
1 changed files with 4 additions and 0 deletions

View File

@ -130,6 +130,10 @@ bool MachineSinking::ProcessBlock(MachineBasicBlock &MBB) {
/// SinkInstruction - Determine whether it is safe to sink the specified machine
/// instruction out of its current block into a successor.
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
// anything we can't handle, bail out.
MachineBasicBlock *ParentBlock = MI->getParent();