commit | 2801b1588023899dc3f776920c11ceabc8c7b459 | [log] [tgz] |
---|---|---|
author | Ramkumar Ramachandra <ram.ramachandra@arm.com> | Thu Apr 18 10:03:07 2024 +0100 |
committer | Copybara-Service <copybara-worker@google.com> | Thu Apr 18 02:11:18 2024 -0700 |
tree | 260060a0c3e23d9f81a29990caf03098764948dd | |
parent | af0e163817c1d6a3e60177d92f11c354adf9f57c [diff] |
LoopVectorize: guard appending InstsToScalarize; fix bug (#88720) In the process of collecting instructions to scalarize, LoopVectorize uses faulty reasoning whereby it also adds instructions that will be scalar after vectorization. If an instruction satisfies isScalarAfterVectorization() for the given VF, it should not be appended to InstsToScalarize. Add this extra guard, fixing a crash. Fixes #55096. GitOrigin-RevId: 63d8058ef50a3186b6b6a5db254f44673fea3d19