[PATCH] D89876: [ARM][SchedModels] Convert IsLdrAm3RegOffPred to MCSchedPredicate

Andrea Di Biagio via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 21 09:48:13 PDT 2020


andreadb added a comment.

In D89876#2344978 <https://reviews.llvm.org/D89876#2344978>, @evgeny777 wrote:

> Addressed

Thanks!

I cannot comment on the mca numbers (I leave that part of the review to @dmgreen).
The changes to the predicates look good to me.

---

As a side note (unrelated to this patch):
If in future you plan to rewrite `isAddrMode3OpMinusReg`, then I suggest you to have a look at TIIPredicate.
Note also that `CheckImmOperand_s` can be used to define predicates like this:

  MyFunction(MI->getOperand(Index).getImm()) == Val

(see for example the code comments for `CheckOperandBase` in TargetInstrPredicate.td).


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D89876/new/

https://reviews.llvm.org/D89876



More information about the llvm-commits mailing list