[all-commits] [llvm/llvm-project] a12403: [LV] Do not consider instrs dead if used by phi th...
Florian Hahn via All-commits
all-commits at lists.llvm.org
Wed Mar 9 08:05:16 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a12403cfea15fc86fadfc28b5c76c056b36609cc
https://github.com/llvm/llvm-project/commit/a12403cfea15fc86fadfc28b5c76c056b36609cc
Author: Florian Hahn <flo at fhahn.com>
Date: 2022-03-09 (Wed, 09 Mar 2022)
Changed paths:
M llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
A llvm/test/Transforms/LoopVectorize/instruction-only-used-outside-of-loop.ll
Log Message:
-----------
[LV] Do not consider instrs dead if used by phi that's not in plan.
Single value phis won't be modeled in VPlan. If the phi only gets used
outside the loop, the current code misses the fact that the incoming
value is not dead. Update the code to also look through such phis to
check for outside users.
Fixes #54266
More information about the All-commits
mailing list