[PATCH] D60723: [EarlyCSE] detect equivalence of selects with inverse conditions and commuted operands (PR41101)

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 15 15:09:14 PDT 2019


spatel updated this revision to Diff 195255.
spatel marked an inline comment as done.
spatel added a comment.

Patch updated:

1. Improve hashing as suggested (I don't know how to expose that in a test, so no extra tests for that).
2. Add a "double-negation" matcher to recognize selects with same true/false ops but different conditions (positive and negative tests added).


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

https://reviews.llvm.org/D60723

Files:
  llvm/lib/Transforms/Scalar/EarlyCSE.cpp
  llvm/test/Transforms/EarlyCSE/commute.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60723.195255.patch
Type: text/x-patch
Size: 9151 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190415/8667669b/attachment.bin>


More information about the llvm-commits mailing list