summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AMDGPU/update-phi.ll
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2019-06-25 18:51:44 +0000
committerSanjay Patel <spatel@rotateright.com>2019-06-25 18:51:44 +0000
commitfcfa056cebf63462adaa0a25e77785ec19604e29 (patch)
tree71c994f4671f63793fc5020361c13d89dbfd9a8b /llvm/test/CodeGen/AMDGPU/update-phi.ll
parent30519a68d5b954c70e5a19764914e8f506baf59e (diff)
downloadbcm5719-llvm-fcfa056cebf63462adaa0a25e77785ec19604e29.tar.gz
bcm5719-llvm-fcfa056cebf63462adaa0a25e77785ec19604e29.zip
[InstCombine] reduce checks for power-of-2-or-zero using ctpop
This follows up the transform from rL363956 to use the ctpop intrinsic when checking for power-of-2-or-zero. This is matching the isPowerOf2() patterns used in PR42314: https://bugs.llvm.org/show_bug.cgi?id=42314 But there's at least 1 instcombine follow-up needed to match the alternate form: (v & (v - 1)) == 0; We should have all of the backend expansions handled with: rL364319 (x86-specific changes still needed for optimal code based on subtarget) And the larger patterns to exclude zero as a power-of-2 are joining with this change after: rL364153 ( D63660 ) rL364246 Differential Revision: https://reviews.llvm.org/D63777 llvm-svn: 364341
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/update-phi.ll')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud