Page MenuHomePhabricator

[LV] Check VPValue operand instead of Cost::isUniformAfterVec (NFC).
Needs ReviewPublic

Authored by fhahn on Fri, Nov 19, 8:52 AM.

Details

Summary

ILV::scalarizeInstruction still uses the original IR operands to check
if an input value is uniform after vectorization.

There is no need to go back to the cost model to figure that out, as the
information is already explicit in the VPlan. Just check directly
whether the VPValue is defined outside the plan or is a uniform
VPReplicateRecipe.

Diff Detail

Event Timeline

fhahn created this revision.Fri, Nov 19, 8:52 AM
fhahn requested review of this revision.Fri, Nov 19, 8:52 AM
Herald added a project: Restricted Project. · View Herald TranscriptFri, Nov 19, 8:52 AM
Herald added a subscriber: vkmr. · View Herald Transcript
fhahn updated this revision to Diff 388911.Mon, Nov 22, 7:14 AM

rebased after4348cd42c385