[llvm] [VPlan] Strip bad TODO in VPTransformState::get (NFC) (PR #166146)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 3 03:18:29 PST 2025


artagnon wrote:

> > > > I presume the point of that TODO is not that it should emit a VPInstruction::Broadcast at that point, but all single scalar values should be wrapped in a VPInstruction::Broadcast before execution. So VPTransformState::get should never have to emit a splat.
> > > 
> > > 
> > > Yep, that's the intention of the TODO
> > 
> > 
> > Should we create a new VPTransform to wrap single-scalars in broadcasts?
> 
> I think `materializeBroadcasts` does part of this? I'm not super familiar with it though, maybe it doesn't handle all single scalars yet.

Hm, strange. I wonder why it only does it for live-ins, and not other recipes created in VPlan.

https://github.com/llvm/llvm-project/pull/166146


More information about the llvm-commits mailing list