[LV] Re-use already computed runtime VF in fixFixedOrderRecurrence.
authorFlorian Hahn <flo@fhahn.com>
Mon, 10 Apr 2023 20:25:11 +0000 (21:25 +0100)
committerFlorian Hahn <flo@fhahn.com>
Mon, 10 Apr 2023 20:25:12 +0000 (21:25 +0100)
commitf9d0b35d2238b5d8977d1d920ee7311b33f0966c
treeb6f4a39348ac0ead079806b989e576fab84cdf88
parent954befe2a7450d153bc001979eb2376e40b5c491
[LV] Re-use already computed runtime VF in fixFixedOrderRecurrence.

This was suggested as independent cleanup in D147472.

This removes a redundant runtime VF computation when using scalable
vectors.
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/test/Transforms/LoopVectorize/scalable-first-order-recurrence.ll