[PATCH] D83670: [NFCI][InstCombine] Move store merging from `visitStoreInst()` into `visitUnconditionalBranchInst()`
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 13 07:33:33 PDT 2020
lebedev.ri added inline comments.
================
Comment at: llvm/lib/Transforms/InstCombine/InstructionCombining.cpp:2760
+ if (StoreInst *SI = GetLastSinkableStore(BasicBlock::iterator(BI)))
+ if (mergeStoreIntoSuccessor(*SI)) {
+ // Okay, we've managed to do that. Now, let's see if now-second-to-last
----------------
nikic wrote:
> Can we just `return &BI;` here, and let the usual reprocessing deal with it?
.. or did you mean *always* `return &BI;` ?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83670/new/
https://reviews.llvm.org/D83670
More information about the llvm-commits
mailing list