llvm-project/llvm/lib/Transforms/InstCombine
Nuno Lopes dd995aceda [InstCombine] remove incorrect gep(x, undef) -> undef optimization
gep(x, undef) carries the provenance of x, so we can't replace it with any
pointer like undef.
This leaves room for improvement for the poison case, but that's currently
not possible as the demanded bits API doesn't distinguish between undef &
poison bits.

Fixes #44790
2022-01-30 11:34:32 +00:00
..
CMakeLists.txt llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
InstCombineAddSub.cpp Revert "Rename llvm::array_lengthof into llvm::size to match std::size from C++17" 2022-01-26 16:55:53 +01:00
InstCombineAndOrXor.cpp [InstCombine] try to fold binop with phi operands 2022-01-22 15:00:06 -05:00
InstCombineAtomicRMW.cpp Add missing namespace closure comments. NFCI. 2020-09-23 16:19:25 +01:00
InstCombineCalls.cpp [InstCombine] Remove some pointer element type accesses 2022-01-27 10:15:35 +01:00
InstCombineCasts.cpp [InstCombine] Skip PromoteCastOfAllocation() transform under opaque pointers 2022-01-27 10:25:45 +01:00
InstCombineCompares.cpp Recommit "[InstCombine] Fold and-reduce idiom" 2022-01-29 11:27:48 +07:00
InstCombineInternal.h [InstCombine] Mark element type access as non-opaque (NFC) 2022-01-27 11:40:29 +01:00
InstCombineLoadStoreAlloca.cpp [InstCombine] Avoid pointer element type access in PointerReplacer 2022-01-27 12:28:32 +01:00
InstCombineMulDivRem.cpp [InstCombine] try to fold binop with phi operands 2022-01-22 15:00:06 -05:00
InstCombineNegator.cpp [llvm][NFC] Inclusive language: Reword replace uses of sanity in llvm/lib/Transform comments and asserts 2021-11-23 13:22:55 -05:00
InstCombinePHI.cpp [InstCombine] Drop outdated alignment comment (NFC) 2021-12-21 08:58:48 +01:00
InstCombineSelect.cpp [IR] document and update ctlz/cttz intrinsics to optionally return poison rather than undef 2022-01-23 11:22:48 -05:00
InstCombineShifts.cpp [InstCombine] try to fold binop with phi operands 2022-01-22 15:00:06 -05:00
InstCombineSimplifyDemanded.cpp [InstCombine] remove incorrect gep(x, undef) -> undef optimization 2022-01-30 11:34:32 +00:00
InstCombineVectorOps.cpp [InstCombine] Use GEP type instead of pointee type 2021-12-28 14:57:43 +01:00
InstructionCombining.cpp [InstCombine] Mark element type access as non-opaque (NFC) 2022-01-27 11:40:29 +01:00