[PATCH] D61517: [InstCombine] Add new combine to add folding.

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 7 08:29:45 PDT 2019


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

Looks reasonable.



================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp:896
+  // (X | C2) + C --> (X | C2) ^ C2
+  // (C2 | X) + C --> (C2 | X) ^ C2
+  // iff (C2 == -C)
----------------
this will never be the case


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

https://reviews.llvm.org/D61517





More information about the llvm-commits mailing list