summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaCodeComplete.cpp
diff options
context:
space:
mode:
authorRoman Lebedev <lebedev.ri@gmail.com>2018-06-15 09:56:39 +0000
committerRoman Lebedev <lebedev.ri@gmail.com>2018-06-15 09:56:39 +0000
commit9c17dad8f2528ebb9505ab2e549cc25d307d0f2b (patch)
treec459ec7d41c6609a88179da60e424fa565c78d84 /clang/lib/Sema/SemaCodeComplete.cpp
parentaa8587d1fcfba6b54a826d2590ddf477261b6800 (diff)
downloadbcm5719-llvm-9c17dad8f2528ebb9505ab2e549cc25d307d0f2b.tar.gz
bcm5719-llvm-9c17dad8f2528ebb9505ab2e549cc25d307d0f2b.zip
[AMDGPU] Recognize x & ((1 << y) - 1) pattern.
Summary: As a followup for D48007. Since we already handle `x << (bitwidth - y) >> (bitwidth - y)` pattern, which does not have ub for both the edge cases (`y == 0`, `y == bitwidth`), i think also handling a pattern that is ub for `y == bitwidth` should be fine. Reviewers: nhaehnle, bogner, tstellar, arsenm Reviewed By: arsenm Subscribers: arsenm, kzhuravl, wdng, yaxunl, dstuttard, tpr, t-tye, llvm-commits Tags: #amdgpu Differential Revision: https://reviews.llvm.org/D48010 llvm-svn: 334816
Diffstat (limited to 'clang/lib/Sema/SemaCodeComplete.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud