summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2019-04-16 20:41:20 +0000
committerSanjay Patel <spatel@rotateright.com>2019-04-16 20:41:20 +0000
commite08783e2f54b949a1dca0b6f906f2a18b7984fc1 (patch)
treed4232008fca9ec639723e34afd8a241f71b1e452 /llvm/lib/CodeGen/SelectionDAG
parent3a00b020aab096e7aa8c94b28b4cef86aa3adbd9 (diff)
downloadbcm5719-llvm-e08783e2f54b949a1dca0b6f906f2a18b7984fc1.tar.gz
bcm5719-llvm-e08783e2f54b949a1dca0b6f906f2a18b7984fc1.zip
[EarlyCSE] detect equivalence of selects with inverse conditions and commuted operands (PR41101)
This is 1 of the problems discussed in the post-commit thread for: rL355741 / http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20190311/635516.html and filed as: https://bugs.llvm.org/show_bug.cgi?id=41101 Instcombine tries to canonicalize some of these cases (and there's room for improvement there independently of this patch), but it can't always do that because of extra uses. So we need to recognize these commuted operand patterns here in EarlyCSE. This is similar to how we detect commuted compares and commuted min/max/abs. Differential Revision: https://reviews.llvm.org/D60723 llvm-svn: 358523
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud