[llvm] [llvm][RISCV] Optimize fcopysign for fixed vectors (PR #193802)
Brandon Wu via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 23 10:53:55 PDT 2026
================
@@ -1679,7 +1679,7 @@ RISCVTargetLowering::RISCVTargetLowering(const TargetMachine &TM,
}
setOperationAction(ISD::FNEG, VT, Expand);
setOperationAction(ISD::FABS, VT, Expand);
- setOperationAction(ISD::FCOPYSIGN, VT, Expand);
+ setOperationAction(ISD::FCOPYSIGN, VT, Custom);
----------------
4vtomat wrote:
Umm, I think they are essentially same code, but I think yeah we should only handle those illegal promoted type only as mentioned in commit message😅
https://github.com/llvm/llvm-project/pull/193802
More information about the llvm-commits
mailing list