[PATCH] D158810: [ConstraintElim] fix crash with large constants in mul nsw

Erik Desjardins via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 25 14:31:39 PDT 2023


erikdesjardins added inline comments.


================
Comment at: llvm/test/Transforms/ConstraintElimination/large-constant-ints.ll:284
+define i1 @mul_nsw_decomp(i128 %x) {
+    %val = mul nsw i128 %x, 9223372036854775808
+    %cmp = icmp sgt i128 %x, %val
----------------
Just realized I forgot to generate checks for this, fixed in https://reviews.llvm.org/rGdf112cba034eefb86d0e92e18518f5e944d58c37


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D158810



More information about the llvm-commits mailing list