llvm-project/llvm/lib/Transforms/InstCombine
Sanjay Patel 3fcb00df5d [InstCombine] restrict shift-trunc-shift fold to opposite direction shifts
This is NFCI because the pattern with 2 left-shifts should get
folded independently by smaller folds.

The motivation is to refine this block to avoid infinite loops
seen with D110170.
2021-09-30 15:06:13 -04:00
..
CMakeLists.txt llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
InstCombineAddSub.cpp [InstCombine] update code/test comments; NFC 2021-09-11 10:53:53 -04:00
InstCombineAndOrXor.cpp [InstCombine] allow splat vectors for narrowing masked fold 2021-09-17 11:24:16 -04:00
InstCombineAtomicRMW.cpp Add missing namespace closure comments. NFCI. 2020-09-23 16:19:25 +01:00
InstCombineCalls.cpp [InstCombine] move add after min/max intrinsic 2021-09-26 09:49:10 -04:00
InstCombineCasts.cpp [InstCombine] Fold ptrtoint(gep i8 null, x) -> x 2021-09-28 17:57:37 +01:00
InstCombineCompares.cpp [InstCombine] reduce code for swapped predicate; NFC 2021-09-28 10:00:35 -04:00
InstCombineInternal.h [InstCombine] Move InstCombineWorklist to Utils to allow reuse (NFC). 2021-09-22 08:47:21 +01:00
InstCombineLoadStoreAlloca.cpp [IR] Return AAMDNodes from Instruction::getMetadata() (NFC) 2021-09-16 21:06:57 +02:00
InstCombineMulDivRem.cpp [InstCombine] Ensure shifts are in range for (X << C1) / C2 -> X fold. 2021-09-25 12:57:43 +01:00
InstCombineNegator.cpp [Transforms] Use range-based for loops (NFC) 2021-02-08 22:33:53 -08:00
InstCombinePHI.cpp [InstCombine] Fold phi ( inttoptr/ptrtoint x ) to phi (x) 2021-08-03 17:52:59 +05:30
InstCombineSelect.cpp Don't fold (select C, (gep Ptr, Idx), Ptr) if C is vector but Idx is scalar 2021-09-22 18:11:33 +08:00
InstCombineShifts.cpp [InstCombine] restrict shift-trunc-shift fold to opposite direction shifts 2021-09-30 15:06:13 -04:00
InstCombineSimplifyDemanded.cpp Revert "[InstCombine] fold cast of right-shift if high bits are not demanded (2nd try)" 2021-09-24 10:47:35 -04:00
InstCombineVectorOps.cpp [NFC][InstCombine] Fix inconsistent comments 2021-09-23 09:31:39 +09:00
InstructionCombining.cpp [InstSimplify] Don't lose inbounds when simplifying a GEP 2021-09-23 09:25:06 +01:00