HomePhabricator

[VPlan] Adjust assert in splitBlock to allow splitting at end.

Authored by fhahn on May 13 2021, 4:57 AM.

Description

[VPlan] Adjust assert in splitBlock to allow splitting at end.

SplitAt should only be dereferenced in the assert if it does not point
to the end of the block. This fixes a crash in the added test case.

Details

Committed
fhahnMay 13 2021, 5:36 AM
Parents
rGba0ec1be2916: [X86] X86ExpandPseudo.cpp - try to pass DebugLoc by const-ref to avoid costly…
Branches
Unknown
Tags
Unknown