Skip to content

Commit aff8bd2

Browse files
phi check first
1 parent 6aaf161 commit aff8bd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/MachineInstr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1342,7 +1342,7 @@ bool MachineInstr::wouldBeTriviallyDead() const {
13421342
// If we can move an instruction, we can remove it. Otherwise, it has
13431343
// a side-effect of some sort.
13441344
bool SawStore = false;
1345-
return isSafeToMove(SawStore) || isPHI();
1345+
return isPHI() || isSafeToMove(SawStore);
13461346
}
13471347

13481348
static bool MemOperandsHaveAlias(const MachineFrameInfo &MFI, AAResults *AA,

0 commit comments

Comments
 (0)