summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaInit.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2017-10-03 20:34:20 +0000
committerSanjay Patel <spatel@rotateright.com>2017-10-03 20:34:20 +0000
commit389b7cedc311c785d9060d83197b555d227b4d7d (patch)
tree5477b416a1d84d8de79195ce1fd04a077b745db7 /clang/lib/Sema/SemaInit.cpp
parentacc15e1265862ec9629b870b52298702a48e7e5e (diff)
downloadbcm5719-llvm-389b7cedc311c785d9060d83197b555d227b4d7d.tar.gz
bcm5719-llvm-389b7cedc311c785d9060d83197b555d227b4d7d.zip
[InstCombine] add tests for icmp gt/lt (shr X, C1), C2; NFC
Surprisingly, we have zero coverage for these patterns. Many of these are handled in InstSimplify, but it's not obvious what the rule for folding each case should be, so I've just stamped out everything. It should be possible to fold every case, but currently, we miss these: int ashr_slt(int x) { return (x >> 1) < 1; } int ashr_sgt(int x) { return (x >> 1) > 0; } https://godbolt.org/g/aB2hLE llvm-svn: 314837
Diffstat (limited to 'clang/lib/Sema/SemaInit.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud