diff options
author | Quentin Colombet <qcolombet@apple.com> | 2014-02-21 23:42:41 +0000 |
---|---|---|
committer | Quentin Colombet <qcolombet@apple.com> | 2014-02-21 23:42:41 +0000 |
commit | 4db08df18e6f3ca85c045a2128d35e5665e303eb (patch) | |
tree | 1b94ccfeced5e4987a72660adbc5b5d586c402fd /clang/lib/CodeGen/BackendUtil.cpp | |
parent | d51ba0b39f210da53d4edbf386d4df6e3e8b18e2 (diff) | |
download | bcm5719-llvm-4db08df18e6f3ca85c045a2128d35e5665e303eb.tar.gz bcm5719-llvm-4db08df18e6f3ca85c045a2128d35e5665e303eb.zip |
[DAGCombiner] PCMP* sets its result to all ones or zeros so we can AND with the
shifted mask rather than masking and shifting separately.
The patch adds this transformation to the DAGCombiner:
(shl (and (setcc:i8v16 ...) N01C) N1C) -> (and (setcc:i8v16 ...) N01C<<N1C)
<rdar://problem/16054492>
Patch by Adam Nemet <anemet@apple.com>
llvm-svn: 201906
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
0 files changed, 0 insertions, 0 deletions