[PATCH] D142783: [InstCombine][LV] Fold (add (zext (add X, -1)), 1) -> (zext X) if X is non-zero.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 30 13:55:20 PST 2023


craig.topper added inline comments.


================
Comment at: llvm/test/Transforms/InstCombine/add.ll:2877
+
+define i32 @dec_zext_add_assume_nonzero(i8 %x) {
+; CHECK-LABEL: @dec_zext_add_assume_nonzero(
----------------
I will pre-commit these if they look ok. I wasn't sure if this was the right file or why we have add2.ll, add3.ll, add4.ll


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D142783



More information about the llvm-commits mailing list