[PATCH] D148341: [DAGCombiner] Fold add (mul x, C), x to mul x, C+1

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 14 07:22:49 PDT 2023


RKSimon accepted this revision.
RKSimon added a comment.
This revision is now accepted and ready to land.

LGTM with one minor



================
Comment at: llvm/test/CodeGen/X86/add-of-mul.ll:24
+  ret i32 %add
+}
+
----------------
pre-add this new test.


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

https://reviews.llvm.org/D148341



More information about the llvm-commits mailing list