llvm-project/llvm/lib/Transforms/InstCombine
Nikita Popov 878cb38a5c [InstCombine] Add replaceOperand() helper
Adds a replaceOperand() helper, which is like Instruction.setOperand()
but adds the old operand to the worklist. This reduces the amount of
missing or incorrect worklist management.

This only applies the helper to a relatively small subset of
setOperand() calls in InstCombine, namely those of the pattern
`I.setOperand(); return &I;`, where it is most obviously applicable.

Differential Revision: https://reviews.llvm.org/D73803
2020-02-03 19:00:17 +01:00
..
CMakeLists.txt [cmake] Explicitly mark libraries defined in lib/ as "Component Libraries" 2019-11-21 10:48:08 -08:00
InstCombineAddSub.cpp [InstCombine] convert fsub nsz with fneg operand to -(X + Y) 2020-01-27 14:49:15 -05:00
InstCombineAndOrXor.cpp [InstCombine] Add replaceOperand() helper 2020-02-03 19:00:17 +01:00
InstCombineAtomicRMW.cpp [Alignment][NFC] Remove StoreInst::setAlignment(unsigned) 2019-10-03 13:17:21 +00:00
InstCombineCalls.cpp [InstCombine] Add replaceOperand() helper 2020-02-03 19:00:17 +01:00
InstCombineCasts.cpp [InstCombine] Add replaceOperand() helper 2020-02-03 19:00:17 +01:00
InstCombineCompares.cpp [InstCombine] Add replaceOperand() helper 2020-02-03 19:00:17 +01:00
InstCombineInternal.h [InstCombine] Add replaceOperand() helper 2020-02-03 19:00:17 +01:00
InstCombineLoadStoreAlloca.cpp [InstCombine] Add replaceOperand() helper 2020-02-03 19:00:17 +01:00
InstCombineMulDivRem.cpp [InstCombine] Add replaceOperand() helper 2020-02-03 19:00:17 +01:00
InstCombinePHI.cpp [InstCombine] Don't use getFirstNonPHI in FoldIntegerTypedPHI 2019-11-14 17:52:01 -08:00
InstCombineSelect.cpp [InstCombine] Rename worklist methods; NFC 2020-02-03 18:56:51 +01:00
InstCombineShifts.cpp [InstCombine] Rename worklist methods; NFC 2020-02-03 18:56:51 +01:00
InstCombineSimplifyDemanded.cpp [InstCombine] Rename worklist methods; NFC 2020-02-03 18:56:51 +01:00
InstCombineTables.td InstCombine/AMDGPU: Add dimension-aware image intrinsics to SimplifyDemanded 2018-06-21 13:37:31 +00:00
InstCombineVectorOps.cpp [InstCombine] Add replaceOperand() helper 2020-02-03 19:00:17 +01:00
InstructionCombining.cpp [InstCombine] Add replaceOperand() helper 2020-02-03 19:00:17 +01:00
LLVMBuild.txt Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00