mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Swap parameters of isSafeToMove and isSafeToReMat for consistency.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97578 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -959,8 +959,8 @@ void MachineInstr::copyPredicates(const MachineInstr *MI) {
|
||||
/// SawStore is set to true, it means that there is a store (or call) between
|
||||
/// the instruction's location and its intended destination.
|
||||
bool MachineInstr::isSafeToMove(const TargetInstrInfo *TII,
|
||||
bool &SawStore,
|
||||
AliasAnalysis *AA) const {
|
||||
AliasAnalysis *AA,
|
||||
bool &SawStore) const {
|
||||
// Ignore stuff that we obviously can't move.
|
||||
if (TID->mayStore() || TID->isCall()) {
|
||||
SawStore = true;
|
||||
@ -985,11 +985,11 @@ bool MachineInstr::isSafeToMove(const TargetInstrInfo *TII,
|
||||
/// isSafeToReMat - Return true if it's safe to rematerialize the specified
|
||||
/// instruction which defined the specified register instead of copying it.
|
||||
bool MachineInstr::isSafeToReMat(const TargetInstrInfo *TII,
|
||||
unsigned DstReg,
|
||||
AliasAnalysis *AA) const {
|
||||
AliasAnalysis *AA,
|
||||
unsigned DstReg) const {
|
||||
bool SawStore = false;
|
||||
if (!TII->isTriviallyReMaterializable(this, AA) ||
|
||||
!isSafeToMove(TII, SawStore, AA))
|
||||
!isSafeToMove(TII, AA, SawStore))
|
||||
return false;
|
||||
for (unsigned i = 0, e = getNumOperands(); i != e; ++i) {
|
||||
const MachineOperand &MO = getOperand(i);
|
||||
|
Reference in New Issue
Block a user