[PATCH] D147406: [LoongArch] Optimize multiplication with immediates
Ben Shi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 2 01:59:06 PDT 2023
benshi001 added inline comments.
================
Comment at: llvm/test/CodeGen/LoongArch/ir-instruction/mul.ll:1164
; LA32-NEXT: mulh.wu $a3, $a0, $a2
; LA32-NEXT: add.w $a1, $a3, $a1
; LA32-NEXT: mul.w $a0, $a0, $a2
----------------
This is not optimized due to the immiedate is used twice, by `mul.w` and `mulh.w`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147406/new/
https://reviews.llvm.org/D147406
More information about the llvm-commits
mailing list