aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorPhilip Reames <preames@rivosinc.com>2023-09-13 09:26:30 -0700
committerGitHub <noreply@github.com>2023-09-13 09:26:30 -0700
commit2f005df066e07d93e3d6aa04748c158f883197b7 (patch)
tree785cc4feee90e9e6e36ffc406d33d0d93a33fc6d /llvm/lib/CodeGen/MachineInstr.cpp
parent8b479136c9ede8b7db00b6eeead5421f49cddb43 (diff)
downloadllvm-2f005df066e07d93e3d6aa04748c158f883197b7.zip
llvm-2f005df066e07d93e3d6aa04748c158f883197b7.tar.gz
llvm-2f005df066e07d93e3d6aa04748c158f883197b7.tar.bz2
[DAG][X86] Fold mgather/mscatter/etc with splat index (#65980)
A splat index means the operation is reading from (writing to) the same memory location. Generally, zero is the cheapest value to splat. As such, we'd prefer to add the splatted value to the base, and use a constant zero as the index operand.
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions