[PATCH] D147406: [LoongArch] Optimize multiplication with immediates
WÁNG Xuěruì via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 2 01:39:22 PDT 2023
xen0n added inline comments.
================
Comment at: llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp:3143
+ ((Imm - 2).isPowerOf2() || (Imm - 4).isPowerOf2() ||
+ (Imm - 4).isPowerOf2() || (Imm - 8).isPowerOf2()))
+ return true;
----------------
Do you mean `Imm - 8` and `Imm - 16` instead?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147406/new/
https://reviews.llvm.org/D147406
More information about the llvm-commits
mailing list