llvm-project/llvm/lib/Transforms/InstCombine
Craig Topper 358cd9ae3a [InstCombine] Remove the zextOrTrunc from ShrinkDemandedConstant.
The demanded mask and the constant should always be the same width for all callers today.

Also stop copying the demanded mask as its passed in. We should avoid allocating memory unless we are going to do something. The final AND to create the new constant will take care of it.

llvm-svn: 300927
2017-04-20 23:58:27 +00:00
..
CMakeLists.txt [CMake] NFC. Updating CMake dependency specifications 2016-11-17 04:36:50 +00:00
InstCombineAddSub.cpp [APInt] Rename getSignBit to getSignMask 2017-04-20 16:56:25 +00:00
InstCombineAndOrXor.cpp [APInt] Rename getSignBit to getSignMask 2017-04-20 16:56:25 +00:00
InstCombineCalls.cpp Simplify test for sret attribute in instcombine 2017-04-19 23:17:47 +00:00
InstCombineCasts.cpp Add a getPointerOperandType() helper to LoadInst and StoreInst; NFC 2017-04-18 22:00:54 +00:00
InstCombineCompares.cpp [APInt] Rename getSignBit to getSignMask 2017-04-20 16:56:25 +00:00
InstCombineInternal.h [InstCombine] function names start with lower-case letter; NFC 2017-04-20 22:37:01 +00:00
InstCombineLoadStoreAlloca.cpp [InstCombine] Reduce visitLoadInst() code duplication. NFCI. 2017-04-19 17:26:57 +00:00
InstCombineMulDivRem.cpp [APInt] Rename getSignBit to getSignMask 2017-04-20 16:56:25 +00:00
InstCombinePHI.cpp [InstCombine] Support folding a subtract with a constant LHS into a phi node 2017-04-14 19:20:12 +00:00
InstCombineSelect.cpp [APInt] Rename getSignBit to getSignMask 2017-04-20 16:56:25 +00:00
InstCombineShifts.cpp [APInt] Rename getSignBit to getSignMask 2017-04-20 16:56:25 +00:00
InstCombineSimplifyDemanded.cpp [InstCombine] Remove the zextOrTrunc from ShrinkDemandedConstant. 2017-04-20 23:58:27 +00:00
InstCombineVectorOps.cpp InstCombine: Use the InstSimplify hook for shufflevector 2017-04-04 04:47:57 +00:00
InstructionCombining.cpp [APInt] Cast calls to add/sub/mul overflow methods to void if only their overflow bool out param is used. 2017-04-19 21:09:45 +00:00
LLVMBuild.txt