diff options
author | Roman Lebedev <lebedev.ri@gmail.com> | 2018-06-15 09:56:52 +0000 |
---|---|---|
committer | Roman Lebedev <lebedev.ri@gmail.com> | 2018-06-15 09:56:52 +0000 |
commit | 84c11aed10eb809aa133da350071d82924bbdb23 (patch) | |
tree | 483f4e5a0d5771435787a6637da92505329f45c2 /clang/lib/CodeGen/CGBuiltin.cpp | |
parent | dec562c84956d4816b168b1a7bfe7b2703eaaf86 (diff) | |
download | bcm5719-llvm-84c11aed10eb809aa133da350071d82924bbdb23.tar.gz bcm5719-llvm-84c11aed10eb809aa133da350071d82924bbdb23.zip |
[InstCombine] Recommit: Fold (x << y) >> y -> x & (-1 >> y)
Summary:
We already do it for splat constants, but not just values.
Also, undef cases are mostly non-functional.
The original commit was reverted because
it broke tests for amdgpu backend, which i didn't check.
Now, the backed was updated to recognize these new
patterns, so we are good.
https://bugs.llvm.org/show_bug.cgi?id=37603
https://rise4fun.com/Alive/cplX
Reviewers: spatel, craig.topper, mareko, bogner, rampitec, nhaehnle, arsenm
Reviewed By: spatel, rampitec, nhaehnle
Subscribers: wdng, nhaehnle, llvm-commits
Differential Revision: https://reviews.llvm.org/D47980
llvm-svn: 334818
Diffstat (limited to 'clang/lib/CodeGen/CGBuiltin.cpp')
0 files changed, 0 insertions, 0 deletions