[PATCH] D97732: [AArch64][GlobalISel] Enable use of the optsize predicate in the selector.

Jessica Paquette via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 1 13:58:46 PST 2021


paquette added inline comments.


================
Comment at: llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp:2438
+          (DefSize == 32 &&
+           (MF.getFunction().hasMinSize() || shouldOptForSize(&MF)))) {
         auto *FPImm = I.getOperand(1).getFPImm();
----------------
I would expect `shouldOptForSize` to return true when `minsize` is present and `optsize` is not present.

That case seems pretty atypical though. At least with clang, they always appear together.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D97732



More information about the llvm-commits mailing list