[PATCH] D58633: [InstCombine] remove one-use restriction for icmp+add constant fold

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 27 12:25:45 PST 2019


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

LG, that one-use check seems unmotivated,
we will only produce a single instruction (`icmp`),
so it does not seem to matter whether we can get rid of that `add`.


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

https://reviews.llvm.org/D58633





More information about the llvm-commits mailing list