[llvm] [RISCV][GISel] Add support for G_IS_FPCLASS in F and D extensions (PR #72000)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 10 16:18:03 PST 2023
================
@@ -270,6 +279,17 @@ bool RISCVLegalizerInfo::legalizeCustom(LegalizerHelper &Helper,
return Helper.lower(MI, 0, /* Unused hint type */ LLT()) ==
LegalizerHelper::Legalized;
}
+ case TargetOpcode::G_IS_FPCLASS: {
+ // Turn LLVM IR's floating point classes to that in RISCV,
----------------
topperc wrote:
If we change the immediate here, would that confuse generic combines that look at G_IS_FPCLASS?
https://github.com/llvm/llvm-project/pull/72000
More information about the llvm-commits
mailing list