As @nikic is pointing out in https://bugs.llvm.org/show_bug.cgi?id=46680#c5,
InstCombine should not have forward instruction scans,
so let's move this transform into the proper place.
This is pretty much NFCI.
Paths
| Differential D83670
[NFCI][InstCombine] Move store merging from `visitStoreInst()` into `visitUnconditionalBranchInst()` ClosedPublic Authored by lebedev.ri on Jul 13 2020, 5:12 AM.
Details Summary As @nikic is pointing out in https://bugs.llvm.org/show_bug.cgi?id=46680#c5, This is pretty much NFCI.
Diff Detail
Event Timeline
lebedev.ri marked 2 inline comments as done. Comment ActionsIf changed, just return BI, let the usual handling deal with it.
This revision is now accepted and ready to land.Jul 13 2020, 9:12 AM Closed by commit rGe2b75cafcbac: [NFCI][InstCombine] Move store merging from `visitStoreInst()` into… (authored by lebedev.ri). · Explain WhyJul 14 2020, 12:42 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 277693 llvm/lib/Transforms/InstCombine/InstCombineInternal.h
llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
|
Can we just return &BI; here, and let the usual reprocessing deal with it?