diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2016-04-14 20:17:40 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2016-04-14 20:17:40 +0000 |
| commit | e998b91d865e6d0db389b026d7b85f65ef5a2cad (patch) | |
| tree | 64a3ec228bf51322262fd3e23e36f0f02eeaf071 /llvm/unittests/Analysis/CallGraphTest.cpp | |
| parent | dfa63248c7b2dd4ba903b9e55183c5d7f5d7338f (diff) | |
| download | llvm-e998b91d865e6d0db389b026d7b85f65ef5a2cad.zip llvm-e998b91d865e6d0db389b026d7b85f65ef5a2cad.tar.gz llvm-e998b91d865e6d0db389b026d7b85f65ef5a2cad.tar.bz2 | |
[InstCombine] remove constant by inverting compare + logic (PR27105)
https://llvm.org/bugs/show_bug.cgi?id=27105
We can check if all bits outside of a constant mask are set with a
single constant.
As noted in the bug report, although this form should be considered the
canonical IR, backends may want to transform this into an 'andn' / 'andc'
comparison against zero because that could be a single machine instruction.
Differential Revision: http://reviews.llvm.org/D18842
llvm-svn: 266362
Diffstat (limited to 'llvm/unittests/Analysis/CallGraphTest.cpp')
0 files changed, 0 insertions, 0 deletions
