llvm::MachineInstr::isSafeToMove

Return true if it is safe to move this instruction.

Synopsis

Declared in <llvm/CodeGen/MachineInstr.h>

bool
isSafeToMove(bool& SawStore) const;

Description

If SawStore is set to true, a store or call lies between the current location and the intended destination.

Return Value

True if moving this instruction is safe.

Parameters

NameDescription
SawStoreSet to true when a store/call is seen while checking.