HomePhabricator

[PowerPC] Exploit xxsplti32dx (constant materialization) for scalars

Authored by Conanap on Mar 24 2021, 12:57 PM.

Description

[PowerPC] Exploit xxsplti32dx (constant materialization) for scalars

This patch exploits the xxsplti32dx instruction available on Power10
in place of constant pool loads where xxspltidp would not be able to,
usually because the immediate cannot fit into 32 bits.

Differential Revision: https://reviews.llvm.org/D95458