This is an archive of the discontinued LLVM Phabricator instance.

[LV] Assert no DbgInfoIntrinsic calls are passed to widening (NFC).
ClosedPublic

Authored by fhahn on Apr 7 2020, 3:50 AM.

Details

Summary

When building a VPlan, BasicBlock::instructionsWithoutDebug() is used to
iterate over the instructions in a block. This means that no recipes
should be created for debug info intrinsics already and we can turn the
early exit into an assertion.

Diff Detail

Event Timeline

fhahn created this revision.Apr 7 2020, 3:50 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 7 2020, 3:50 AM
aprantl accepted this revision.Apr 7 2020, 10:29 AM
This revision is now accepted and ready to land.Apr 7 2020, 10:29 AM
Ayal added inline comments.Apr 8 2020, 11:10 AM
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
7246–7247

Perhaps worth moving here the TODO comment about handling debug intrinsics / representing them in VPlan.

fhahn marked an inline comment as done.Apr 9 2020, 3:40 AM
fhahn added inline comments.
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
7246–7247

Excellent suggestion, thanks! I've added a TODO here in the commit.

This revision was automatically updated to reflect the committed changes.