[PATCH] D83670: [NFCI][InstCombine] Move store merging from `visitStoreInst()` into `visitUnconditionalBranchInst()`
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 13 06:58:08 PDT 2020
nikic 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
----------------
Can we just `return &BI;` here, and let the usual reprocessing deal with it?
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