[LV] Adjust reduction recipes before recurrence handling.
authorFlorian Hahn <flo@fhahn.com>
Sun, 22 Aug 2021 09:45:20 +0000 (10:45 +0100)
committerFlorian Hahn <flo@fhahn.com>
Sun, 22 Aug 2021 10:02:33 +0000 (11:02 +0100)
commit9baed023b4b5805eea4d822514eb29acea4a0361
tree053119e789389fe5b3c4015033cf764437f1427a
parentf69fb7ac7226c68731ad702b4eac6f5706aadbc9
[LV] Adjust reduction recipes before recurrence handling.

Adjusting the reduction recipes still relies on references to the
original IR, which can become outdated by the first-order recurrence
handling. Until reduction recipe construction does not require IR
references, move it before first-order recurrence handling, to prevent a
crash as exposed by D106653.
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/test/Transforms/LoopVectorize/AArch64/strict-fadd.ll