diff options
author | Dinesh Dwivedi <dinesh.d@samsung.com> | 2014-08-26 08:53:32 +0000 |
---|---|---|
committer | Dinesh Dwivedi <dinesh.d@samsung.com> | 2014-08-26 08:53:32 +0000 |
commit | 4919bbe29d04db5e437b90268be9f84594199c37 (patch) | |
tree | 055ff9e235c7bbc4c5d999a3ad4c580be9f691e1 /clang/lib/Format/FormatToken.h | |
parent | 24c6f5763a04e333eb8c9972b1c8d91eb7bd54d1 (diff) | |
download | bcm5719-llvm-4919bbe29d04db5e437b90268be9f84594199c37.tar.gz bcm5719-llvm-4919bbe29d04db5e437b90268be9f84594199c37.zip |
This patch enables SimplifyUsingDistributiveLaws() to handle following pattens.
(X >> Z) & (Y >> Z) -> (X&Y) >> Z for all shifts.
(X >> Z) | (Y >> Z) -> (X|Y) >> Z for all shifts.
(X >> Z) ^ (Y >> Z) -> (X^Y) >> Z for all shifts.
These patterns were previously handled separately in visitAnd()/visitOr()/visitXor().
Differential Revision: http://reviews.llvm.org/D4951
llvm-svn: 216443
Diffstat (limited to 'clang/lib/Format/FormatToken.h')
0 files changed, 0 insertions, 0 deletions