[VPlan] Move Load/Store checks out of tryToWiden (NFC).
authorFlorian Hahn <flo@fhahn.com>
Wed, 15 Apr 2020 09:18:31 +0000 (10:18 +0100)
committerFlorian Hahn <flo@fhahn.com>
Wed, 15 Apr 2020 09:18:42 +0000 (10:18 +0100)
commit79d185c79271455c6b05c86ba422f40e70c7e970
treed7593f2288a6f44b74700023184a75f578078712
parent129cf84e69537ae5c184550f94be18da738d9261
[VPlan] Move Load/Store checks out of tryToWiden (NFC).

Handling LoadInst and StoreInst in tryToWiden seems a bit
counter-intuitive, as there is only an assertion for them and in no
case VPWidenRefipes are created for them.

I think it makes sense to move the assertion to handleReplication, where
the non-widened loads and store are handled.

Reviewers: gilr, rengolin, Ayal, hsaito

Reviewed By: Ayal

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