[LV] Assert no DbgInfoIntrinsic calls are passed to widening (NFC).
authorFlorian Hahn <flo@fhahn.com>
Thu, 9 Apr 2020 10:30:02 +0000 (11:30 +0100)
committerFlorian Hahn <flo@fhahn.com>
Thu, 9 Apr 2020 10:37:32 +0000 (11:37 +0100)
commita7efe06af0f5ee860a582885c678b4ef981b6b2c
tree9187aafc6fcb323eb227b4920c8078f9016d9c0a
parent61151500aa598fa28fc4dcfaf96c9b9e0eedbbd7
[LV] Assert no DbgInfoIntrinsic calls are passed to widening (NFC).

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.

Reviewers: Ayal, gilr, rengolin, aprantl

Reviewed By: aprantl

Differential Revision: https://reviews.llvm.org/D77636
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp