[PATCH] D71828: [InstCombine] Convert vector store to scalar store if only one element updated
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 14 08:41:03 PST 2020
lebedev.ri requested changes to this revision.
lebedev.ri added a comment.
This revision now requires changes to proceed.
(marking as reviewed)
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp:1201-1203
+ // Make sure memory isn't modified between the two.
+ for (BasicBlock::iterator BBI = Load->getIterator();
+ BBI != SI.getIterator(); ++BBI)
----------------
lebedev.ri wrote:
> Hm, how do we know both the load and the store are in the same basic block?
(I would expect that there should either already be a function to do this check,
or this should be refactored into a helper function from the getgo.)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71828/new/
https://reviews.llvm.org/D71828
More information about the llvm-commits
mailing list