HomePhabricator

[AArch64][CostModel]Fix gather scatter cost model

Authored by CarolineConcatto on Thu, Jan 7, 1:07 AM.

Description

[AArch64][CostModel]Fix gather scatter cost model

This patch fixes a bug introduced in the patch:
https://reviews.llvm.org/D93030

This patch pulls the test for scalable vector to be the first instruction
to be checked. This avoids the Gather and Scatter cost model for AArch64 to
compute the number of vector elements for something that is not a vector and
therefore crashing.

Details

Committed
CarolineConcattoThu, Jan 7, 6:02 AM
Parents
rGfcd1e35e4cc6: [clang][cli] NFC: Make parsing macro reusable
Branches
Unknown
Tags
Unknown