diff options
author | Sanjay Patel <spatel@rotateright.com> | 2016-09-15 21:35:30 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2016-09-15 21:35:30 +0000 |
commit | af91d1f81e8e407c5bad925067981fc6f770efa1 (patch) | |
tree | 467f190a5bfc52c48c8bd8652d008710b5772a64 /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | aa9f1c59d2700629c4619d5d4e30e309de6fe4e5 (diff) | |
download | llvm-af91d1f81e8e407c5bad925067981fc6f770efa1.zip llvm-af91d1f81e8e407c5bad925067981fc6f770efa1.tar.gz llvm-af91d1f81e8e407c5bad925067981fc6f770efa1.tar.bz2 |
[InstCombine] allow icmp (shr/shl) folds for vectors
These 2 helper functions were already using APInt internally, so just
change the API and caller to allow folds for splats. The scalar
regression tests look quite thorough, so I just added a couple of
tests to prove that vectors are handled too.
These folds should be grouped with the other cmp+shift folds though.
That can be an NFC follow-up.
llvm-svn: 281663
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions