diff options
author | Chris Lattner <sabre@nondot.org> | 2006-02-12 02:07:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-02-12 02:07:56 +0000 |
commit | bf5d8a82707bb89f22e4c0f26c62111796d5f1c3 (patch) | |
tree | 4f3d746d432a594ef8a8d319e52d21b50d0ea030 /lib/CodeGen/MachineBasicBlock.cpp | |
parent | e7df1a27f93b9133ef69b7e46083063d021d89bf (diff) |
Three changes:
1. Teach GetConstantInType to handle boolean constants.
2. Teach instcombine to fold (compare X, CST) when X has known 0/1 bits.
Testcase here: set.ll:test22
3. Improve the "(X >> c1) & C2 == 0" folding code to allow a noop cast
between the shift and and. More aggressive bitfolding for other reasons
was turning signed shr's into unsigned shr's, leaving the noop cast in
the way.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26131 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions