llvm-project/llvm/lib/Transforms/InstCombine
Chang-Sun Lin, Jr 9cae598f8b
[InstCombine] Avoid folding GEPs across loop boundaries
Folding a GEP from outside to inside a loop will materialize an add where there wasn't an equivalent operation before. Check the containing loops before making this fold.

Reviewed By: lebedev.ri

Differential Revision: https://reviews.llvm.org/D107935
2021-08-19 20:03:44 +03:00
..
CMakeLists.txt llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
InstCombineAddSub.cpp [InstCombine] fold reassociative FP add into start value of fadd reduction 2021-07-18 06:26:20 -04:00
InstCombineAndOrXor.cpp [InstCombine] add min/max intrinsics as freely invertible candidates 2021-08-19 08:41:38 -04:00
InstCombineAtomicRMW.cpp Add missing namespace closure comments. NFCI. 2020-09-23 16:19:25 +01:00
InstCombineCalls.cpp [NFC] More get/removeAttribute() cleanup 2021-08-17 21:05:41 -07:00
InstCombineCasts.cpp [SVE] Add folds for truncation of vscale 2021-08-13 10:18:00 +01:00
InstCombineCompares.cpp [InstCombine] avoid breaking up min/max (cmp+sel) idioms 2021-08-11 12:48:11 -04:00
InstCombineInternal.h [InstCombine] Add call to matchSAddSubSat from min/max 2021-08-15 17:25:16 +01:00
InstCombineLoadStoreAlloca.cpp Fixing an infinite loop problem in InstCombine 2021-07-29 12:57:17 -07:00
InstCombineMulDivRem.cpp [InstCombine] Fold (sext bool X) * (sext bool X) to zext (and X, X) 2021-06-18 16:28:06 +07: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 [InstCombine] Add call to matchSAddSubSat from min/max 2021-08-15 17:25:16 +01:00
InstCombineShifts.cpp [InstCombine] remove shl(neg x), y transform 2021-08-12 11:27:22 -04:00
InstCombineSimplifyDemanded.cpp [InstCombine] fold umax/umin intrinsics based on demanded bits 2021-08-12 12:37:45 -04:00
InstCombineVectorOps.cpp [InstCombine] Add more complex folds for extractelement + stepvector 2021-08-10 09:17:21 +01:00
InstructionCombining.cpp [InstCombine] Avoid folding GEPs across loop boundaries 2021-08-19 20:03:44 +03:00