llvm-project/llvm/lib/Transforms/InstCombine
Roman Lebedev c009d11bda
[InstCombine] Perform C-(X+C2) --> (C-C2)-X transform before using Negator
In particular, it makes it fire for C=0, because negator doesn't want
to perform that fold since in general it's not beneficial.
2020-11-03 16:06:52 +03:00
..
CMakeLists.txt [InstCombine] Move target-specific inst combining 2020-07-22 15:59:49 +02:00
InstCombineAddSub.cpp [InstCombine] Perform C-(X+C2) --> (C-C2)-X transform before using Negator 2020-11-03 16:06:52 +03:00
InstCombineAndOrXor.cpp [InstCombine] Add support for zext(and(neg(amt),width-1)) rotate shift amount patterns 2020-10-26 11:22:41 +00:00
InstCombineAtomicRMW.cpp Add missing namespace closure comments. NFCI. 2020-09-23 16:19:25 +01:00
InstCombineCalls.cpp [InstCombine] Do not introduce bitcasts for swifterror arguments. 2020-10-28 21:52:12 +00:00
InstCombineCasts.cpp [InstCombine] narrowFunnelShift - fold trunc/zext or(shl(a,x),lshr(b,sub(bw,x))) -> fshl(a,b,x) (PR35155) 2020-10-24 12:42:43 +01:00
InstCombineCompares.cpp [InstCombine] add folds for icmp+ctpop 2020-10-26 16:48:56 -04:00
InstCombineInternal.h [InstCombine] matchBSwapOrBitReverse - expose bswap/bitreverse matching flags. 2020-10-23 12:35:28 +01:00
InstCombineLoadStoreAlloca.cpp [SVE][InstCombine] Fix TypeSize warning in canReplaceGEPIdxWithZero 2020-10-26 17:40:26 +00:00
InstCombineMulDivRem.cpp [InstCombine] Replace getLogBase2 internal helper with ConstantExpr::getExactLogBase2. NFCI. 2020-10-11 10:31:17 +01:00
InstCombineNegator.cpp [InstCombine] Negator: - (C - %x) --> %x - C (PR47997) 2020-11-03 16:06:51 +03:00
InstCombinePHI.cpp Add missing namespace closure comments. NFCI. 2020-09-23 16:19:25 +01:00
InstCombineSelect.cpp [InstCombine] foldSelectRotate - generalize to foldSelectFunnelShift 2020-10-31 12:32:34 +00:00
InstCombineShifts.cpp [InstCombine] visitShl - ensure inner shifts have inrange amounts 2020-10-29 15:28:15 +00:00
InstCombineSimplifyDemanded.cpp [InstCombine] SimplifyDemandedUseBits - replace dyn_cast<ConstantInt> with m_ConstantInt. NFCI. 2020-10-20 16:45:16 +01:00
InstCombineVectorOps.cpp [InstCombine] Simplify code. NFCI. 2020-09-27 19:11:07 +02:00
InstructionCombining.cpp Rename EHPersonality::MSVC_Win64SEH to EHPersonality::MSVC_TableSEH. NFC. 2020-10-27 23:22:13 -07:00
LLVMBuild.txt