llvm-project/llvm/lib/Transforms/InstCombine
Craig Topper 47596dd4cc [InstCombine] Change the interface of SimplifyDemandedBits so that it takes the instruction and operand instead of the Use.
The first thing it did was get the User for the Use to get the instruction back. This requires looking through the Uses for the User using the waymarking walk. That's pretty fast, but its probably still better to just pass the Instruction we already had.

llvm-svn: 298772
2017-03-25 06:52:52 +00:00
..
CMakeLists.txt [CMake] NFC. Updating CMake dependency specifications 2016-11-17 04:36:50 +00:00
InstCombineAddSub.cpp NFC. InstCombiner::visitFAdd extract LHSIntVal/RHSIntVal local variables 2017-03-21 11:32:15 +00:00
InstCombineAndOrXor.cpp [InstCombine] Remove some code from visitAnd that dealt with trying to reduce the LHS of a sub to 0. This should now be fully handled by SimplifyDemandedInstructionBits now. 2017-03-23 21:00:13 +00:00
InstCombineCalls.cpp AMDGPU: Fold rcp/rsq of undef to undef 2017-03-24 19:04:57 +00:00
InstCombineCasts.cpp InstCombine: Check source value precision when reducing cast intrinsic 2017-03-20 21:59:24 +00:00
InstCombineCompares.cpp [InstCombine] Change the interface of SimplifyDemandedBits so that it takes the instruction and operand instead of the Use. 2017-03-25 06:52:52 +00:00
InstCombineInternal.h [InstCombine] Change the interface of SimplifyDemandedBits so that it takes the instruction and operand instead of the Use. 2017-03-25 06:52:52 +00:00
InstCombineLoadStoreAlloca.cpp [InstCombine] Fix bug in pointer replacement 2017-02-24 20:27:25 +00:00
InstCombineMulDivRem.cpp [InstCombine] improve readability; NFCI 2017-03-14 17:27:27 +00:00
InstCombinePHI.cpp fix formatting; NFC 2017-01-31 17:25:42 +00:00
InstCombineSelect.cpp [InstCombine] avoid breaking up bitcasted vector min/max patterns (PR32306) 2017-03-16 20:42:45 +00:00
InstCombineShifts.cpp [InstCombine] allow (X * C2) << C1 --> X * (C2 << C1) for vectors 2017-02-09 23:13:04 +00:00
InstCombineSimplifyDemanded.cpp [InstCombine] Change the interface of SimplifyDemandedBits so that it takes the instruction and operand instead of the Use. 2017-03-25 06:52:52 +00:00
InstCombineVectorOps.cpp [InstCombine] canonicalize insertelement of scalar constant ahead of insertelement of variable 2017-03-22 17:10:44 +00:00
InstructionCombining.cpp [InstCombine] Use range-based for loop. NFC 2017-03-24 02:58:02 +00:00
LLVMBuild.txt