llvm-project/llvm/lib/Transforms/InstCombine
Sanjay Patel 98cd99dfc6 [InstCombine] add helper function for folds of icmp (shl 1, Y), C; NFCI
Clean up the existing code by:
1. Renaming variables
2. Adding local variables
3. Making it vector-safe

This is still guarded by a ConstantInt check, so no functional change is intended.
But this should be ready to go: if we move the ConstantInt check down, all of
these folds should do the right thing for vector types.

llvm-svn: 279150
2016-08-18 21:28:30 +00:00
..
CMakeLists.txt Use ADDITIONAL_HEADER_DIRS in all LLVM CMake projects. 2015-02-11 03:28:02 +00:00
InstCombineAddSub.cpp InstCombine: Replace some never-null pointers with references. NFC 2016-08-05 01:06:44 +00:00
InstCombineAndOrXor.cpp InstCombine: Clean up some trailing whitespace. NFC 2016-08-05 01:09:48 +00:00
InstCombineCalls.cpp Make cltz and cttz zero undef when the operand cannot be zero in InstCombine 2016-08-18 20:43:50 +00:00
InstCombineCasts.cpp InstCombine: Clean up some trailing whitespace. NFC 2016-08-05 01:09:48 +00:00
InstCombineCompares.cpp [InstCombine] add helper function for folds of icmp (shl 1, Y), C; NFCI 2016-08-18 21:28:30 +00:00
InstCombineInternal.h [InstCombine] add helper functions for foldICmpWithConstant; NFCI 2016-08-16 17:54:36 +00:00
InstCombineLoadStoreAlloca.cpp Use range algorithms instead of unpacking begin/end 2016-08-11 21:15:00 +00:00
InstCombineMulDivRem.cpp InstCombine: Replace some never-null pointers with references. NFC 2016-08-05 01:06:44 +00:00
InstCombinePHI.cpp Use the range variant of find/find_if instead of unpacking begin/end 2016-08-12 03:55:06 +00:00
InstCombineSelect.cpp [InstCombine] try to fold (select C, (sext A), B) into logical ops 2016-08-05 08:22:29 +00:00
InstCombineShifts.cpp Replace a few more "fall through" comments with LLVM_FALLTHROUGH 2016-08-17 20:30:52 +00:00
InstCombineSimplifyDemanded.cpp don't repeat function names in comments; NFC 2016-07-14 20:54:43 +00:00
InstCombineVectorOps.cpp InstCombine: Replace some never-null pointers with references. NFC 2016-08-05 01:06:44 +00:00
InstructionCombining.cpp Replace a few more "fall through" comments with LLVM_FALLTHROUGH 2016-08-17 20:30:52 +00:00
LLVMBuild.txt Update libdeps since TLI was moved from Target to Analysis in r226078. 2015-01-15 05:21:00 +00:00