llvm-project
6e1cb51a - [GlobalISel] Drop redundant scalable-dest check in G_EXTRACT_SUBVECTOR lowering (NFC) (#221934)

Commit
5 hours ago
[GlobalISel] Drop redundant scalable-dest check in G_EXTRACT_SUBVECTOR lowering (NFC) (#221934) The scalarizing lowering of G_EXTRACT_SUBVECTOR bails out for both a scalable source and a scalable destination. According to llvm/docs/GlobalISel/GenericOpcode.md, G_EXTRACT_SUBVECTOR only supports extracting a fixed vector from a scalable vector, never a scalable vector from a fixed one. This means that a fixed source implies a fixed destination, making the DstTy.isScalable() check redundant. Remove it. NFC.
Author
Parents
Loading