[VPlan] Use usesScalars in shouldPack.
authorFlorian Hahn <flo@fhahn.com>
Mon, 20 Feb 2023 14:11:18 +0000 (14:11 +0000)
committerFlorian Hahn <flo@fhahn.com>
Mon, 20 Feb 2023 14:11:40 +0000 (14:11 +0000)
commitc21ccebe6f5293fc1359456b31d188edc9c5ac66
tree251d10b62ba7b0b0f05c9afa8d6922d73c31e28b
parent028c722ac8ea65db0cf24e77629644a5c6f322c5
[VPlan] Use usesScalars in shouldPack.

Suggested by @Ayal as follow-up improvement in D143864.

I was unable to find a case where this actually changes generated code,
but it is a unifying code to use common infrastructure.
llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp