[llvm-dev] [VPlan] Dead instructions are invariant to VFs when build vplan

Florian Hahn via llvm-dev llvm-dev at lists.llvm.org
Fri Jun 1 03:21:20 PDT 2018


Hi

On 01/06/2018 10:56, Shixiong Xu via llvm-dev wrote:
> Hi,
> 
> I noticed that the dead instructions collected when build vplan are 
> invariant to different ranges of VFs since the original loop is not 
> changed. Maybe DeadInstructions should be treated as a data member of 
> LoopVectorizationPlanner and initialized by 
> collectTriviallyDeadInstructions() in plan()?
> 

Yep you are right. There's a patch under review, which also addresses 
that:  https://reviews.llvm.org/D47477

Thanks,
Florian


More information about the llvm-dev mailing list