Skip to content

Commit

Permalink
[ARM][SchedModels] Rename and generalize predicate. NFC
Browse files Browse the repository at this point in the history
  • Loading branch information
eleviant committed Oct 26, 2020
1 parent 82150da commit a95ce5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion llvm/lib/Target/ARM/ARMSchedule.td
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def IsCPSRDefined : CheckFunctionPredicateWithTII<
def IsCPSRDefinedPred : MCSchedPredicate<IsCPSRDefined>;

let FunctionMapper = "ARM_AM::getAM2ShiftOpc" in {
def CheckExtNoShift : CheckImmOperand_s<4, "ARM_AM::no_shift">;
class CheckAM2NoShift<int n> : CheckImmOperand_s<n, "ARM_AM::no_shift">;
}

let FunctionMapper = "ARM_AM::getAM2Op" in {
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/ARM/ARMScheduleA57.td
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def IsLdstsoScaledNotOptimalPred :
def IsLdstsoScaledNotOptimalPredX2 :
SchedPredicate<[{TII->isLdstScaledRegNotPlusLsl2(*MI, 2)}]>;

def IsLdstsoScaledPredX2 : MCSchedPredicate<CheckNot<CheckExtNoShift>>;
def IsLdstsoScaledPredX2 : MCSchedPredicate<CheckNot<CheckAM2NoShift<4>>>;

def IsLdstsoMinusRegPredX0 : MCSchedPredicate<CheckAM2OpSub<2>>;
def IsLdstsoMinusRegPred : MCSchedPredicate<CheckAM2OpSub<3>>;
Expand Down

0 comments on commit a95ce5f

Please sign in to comment.