[SLP] Have only ready items in ready list [NFC]
authorPhilip Reames <listmail@philipreames.com>
Fri, 4 Feb 2022 03:33:27 +0000 (19:33 -0800)
committerPhilip Reames <listmail@philipreames.com>
Fri, 4 Feb 2022 03:49:24 +0000 (19:49 -0800)
commitbb9964ba4382afce1336f594c05580d554186500
treefde3b135f6de6b857df1e4417fbc6c6752171439
parent25d50a00c5f81196d98613169179aed58653d8bf
[SLP] Have only ready items in ready list [NFC]

This adds the assertion that all items in the ready list are in-fact scheduleable entities ready to be scheduled.  This involves changing the ReadyInsts structure to be a set, and fixing a couple places where we left nodes on the list when they were no longer ready.
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp