[PATCH] D59471: [InstCombine] Fold add nuw + uadd.with.overflow

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 17 09:27:08 PDT 2019


lebedev.ri added a comment.

Looks reasonable, test coverage nits added.



================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp:2058-2061
+    if (Instruction *I = canonicalizeConstantArg0ToArg1(CI))
+      return I;
+    if (Instruction *I = foldIntrinsicWithOverflowCommon(II))
+      return I;
----------------
Are these tested?


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

https://reviews.llvm.org/D59471





More information about the llvm-commits mailing list