aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBlockPlacement.cpp
diff options
context:
space:
mode:
authorLiao Chunyu <chunyu@iscas.ac.cn>2023-11-21 13:43:34 +0800
committerGitHub <noreply@github.com>2023-11-21 13:43:34 +0800
commit9166cd2a71ba81d2c9c68f80371b1397943a813b (patch)
treead1122fcf98826927c08cee62d6aa36d5f282e0a /llvm/lib/CodeGen/MachineBlockPlacement.cpp
parentd84834a695ed848f47b721c1b7f75f2ef25fb4e0 (diff)
downloadllvm-9166cd2a71ba81d2c9c68f80371b1397943a813b.zip
llvm-9166cd2a71ba81d2c9c68f80371b1397943a813b.tar.gz
llvm-9166cd2a71ba81d2c9c68f80371b1397943a813b.tar.bz2
[RISCV] DAG combine (mul (add x, 1), y) -> vmadd (#71495)
vmadd: (mul (add x, 1), y) -> (add (mul x, y), y) (mul x, add (y, 1)) -> (add x, (mul x, y)) vnmsub: (mul (sub 1, x), y) -> (sub y, (mul x, y)) (mul x, (sub 1, y)) -> (sub x, (mul x, y)) Comparison with gcc: vmadd: https://gcc.godbolt.org/z/xjePx87Y7 vnsub: https://gcc.godbolt.org/z/b17zG7nT1
Diffstat (limited to 'llvm/lib/CodeGen/MachineBlockPlacement.cpp')
0 files changed, 0 insertions, 0 deletions