Skip to content

Commit 6aaf161

Browse files
Return expression
1 parent 40d27dc commit 6aaf161

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

llvm/lib/CodeGen/MachineInstr.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,10 +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-
if (!isSafeToMove(SawStore) && !isPHI())
1346-
return false;
1347-
1348-
return true;
1345+
return isSafeToMove(SawStore) || isPHI();
13491346
}
13501347

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

0 commit comments

Comments
 (0)