[PATCH] D123779: [AArch64] Add `foldOverflowCheck` DAG combine

Paul Walker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 21 04:59:58 PDT 2022


paulwalker-arm accepted this revision.
paulwalker-arm added inline comments.
This revision is now accepted and ready to land.


================
Comment at: llvm/lib/Target/AArch64/AArch64ISelLowering.cpp:15454-15457
+  if (!isCMP(CmpOp))
+    return SDValue();
+  if (!isOneConstant(CmpOp.getOperand(1)))
+    return SDValue();
----------------
Given these are related perhaps merge these two if blocks?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D123779



More information about the llvm-commits mailing list