diff options
author | Diogo N. Sampaio <diogo.sampaio@arm.com> | 2018-07-06 09:42:25 +0000 |
---|---|---|
committer | Diogo N. Sampaio <diogo.sampaio@arm.com> | 2018-07-06 09:42:25 +0000 |
commit | 742bf1a255691f2988c50031c92e1d7cfd913ace (patch) | |
tree | 30d276dcbe4dcbee35e772d6a8cd1899f9e21219 /clang/lib/Sema/SemaCodeComplete.cpp | |
parent | b3706154514ee4cb432122f7f822ebecee97f688 (diff) | |
download | llvm-742bf1a255691f2988c50031c92e1d7cfd913ace.zip llvm-742bf1a255691f2988c50031c92e1d7cfd913ace.tar.gz llvm-742bf1a255691f2988c50031c92e1d7cfd913ace.tar.bz2 |
[SelectionDAG] https://reviews.llvm.org/D48278
D48278
Allow to reduce redundant shift masks.
For example:
x1 = x & 0xAB00
x2 = (x >> 8) & 0xAB
can be reduced to:
x1 = x & 0xAB00
x2 = x1 >> 8
It only allows folding when the masks and shift values are constants.
llvm-svn: 336426
Diffstat (limited to 'clang/lib/Sema/SemaCodeComplete.cpp')
0 files changed, 0 insertions, 0 deletions