[SLP] Add basic self consistency asserts into scheduling
authorPhilip Reames <listmail@philipreames.com>
Thu, 3 Feb 2022 21:23:02 +0000 (13:23 -0800)
committerPhilip Reames <listmail@philipreames.com>
Thu, 3 Feb 2022 21:27:35 +0000 (13:27 -0800)
commit1519629a20b84f563715f48892d9c0ff8f2845ba
treec3d21705fefac3d557bfdc3250b52148ec3c418d
parentc3c1c5c6953fcf9320a0cae5121ce55839169790
[SLP] Add basic self consistency asserts into scheduling

The idea here is to have a verify routine we can call during scheduling to ensure broken invariants are reported.  The intent is to help in debugging scheduling bugs.

At the moment, only the most basic properties are checked as adding several I thought held reported failures.
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp