[PATCH] D68577: [LV] Apply sink-after & interleave-groups as VPlan transformations (NFC)
Wang Tianqing via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 7 18:36:48 PST 2019
tianqing added inline comments.
================
Comment at: llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:7128
// built for them.
if (isa<BranchInst>(Instr) ||
DeadInstructions.find(Instr) != DeadInstructions.end())
----------------
Previously we have this conditional guard against sinking of certain instructions so the problem got hidden. The real problem should be in IVDescriptors.cpp:RecurrenceDescriptor::isFirstOrderRecurrence(). Probably it's better to allow only a whitelist of arithmetic opcodes.
Please note there is another discussion https://reviews.llvm.org/D69228 going on with that function.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68577/new/
https://reviews.llvm.org/D68577
More information about the llvm-commits
mailing list