[PATCH] D146786: [CodeGenPrepare][RISCV] Correct the MathUsed flag for shouldFormOverflowOp

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 24 02:27:09 PDT 2023


RKSimon added inline comments.


================
Comment at: llvm/lib/CodeGen/CodeGenPrepare.cpp:1591
+    } else
       return false;
   }
----------------
Why can't you keep the existing !matchUAddWithOverflowConstantEdgeCases(Cmp, Add) early out code?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D146786



More information about the llvm-commits mailing list