llvm-6502/lib/Transforms/InstCombine
Paul Redmond 6da2e22dff Transform (x&C)>V into (x&C)!=0 where possible
When the least bit of C is greater than V, (x&C) must be greater than V
if it is not zero, so the comparison can be simplified.

Although this was suggested in Target/X86/README.txt, it benefits any
architecture with a directly testable form of AND.

Patch by Kevin Schoedel


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170576 91177308-0d34-0410-b5e6-96231b3b80d8
2012-12-19 19:47:13 +00:00
..
CMakeLists.txt llvm/lib: [CMake] Add explicit dependency to intrinsics_gen. 2012-06-24 13:32:01 +00:00
InstCombine.h Sort includes for all of the .h files under the 'lib' tree. These were 2012-12-04 07:12:27 +00:00
InstCombineAddSub.cpp Make sure the buffer, which containas an instance of APFloat, has proper alignment. 2012-12-19 01:10:17 +00:00
InstCombineAndOrXor.cpp Use the new script to sort the includes of every file under lib. 2012-12-03 16:50:05 +00:00
InstCombineCalls.cpp Inline the 'hasIncompatibleWithVarArgsAttrs' method into its only uses. And some minor comment reformatting. 2012-12-19 08:57:40 +00:00
InstCombineCasts.cpp Use the new script to sort the includes of every file under lib. 2012-12-03 16:50:05 +00:00
InstCombineCompares.cpp Transform (x&C)>V into (x&C)!=0 where possible 2012-12-19 19:47:13 +00:00
InstCombineLoadStoreAlloca.cpp Use the new script to sort the includes of every file under lib. 2012-12-03 16:50:05 +00:00
InstCombineMulDivRem.cpp rdar://12753946 2012-12-14 18:46:06 +00:00
InstCombinePHI.cpp Use the new script to sort the includes of every file under lib. 2012-12-03 16:50:05 +00:00
InstCombineSelect.cpp Use the new script to sort the includes of every file under lib. 2012-12-03 16:50:05 +00:00
InstCombineShifts.cpp Use m_OneUse pattern instead of hasOneUse() method. 2012-12-09 16:06:44 +00:00
InstCombineSimplifyDemanded.cpp - Fix a problematic way in creating all-the-1 APInt. 2012-12-12 00:29:03 +00:00
InstCombineVectorOps.cpp [InstCombine] Teach InstCombine how to handle an obfuscated splat. 2012-10-16 21:29:38 +00:00
InstCombineWorklist.h Sort includes for all of the .h files under the 'lib' tree. These were 2012-12-04 07:12:27 +00:00
InstructionCombining.cpp Use the new script to sort the includes of every file under lib. 2012-12-03 16:50:05 +00:00
LLVMBuild.txt LLVMBuild: Remove trailing newline, which irked me. 2011-12-12 19:48:00 +00:00
Makefile