[llvm] GlobalISel needs fdiv 1 / sqrt(x) to rsq combine (PR #78673)
Thorsten Schütt via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 18 23:40:17 PST 2024
================
@@ -334,6 +337,59 @@ bool AMDGPUPostLegalizerCombinerImpl::matchRcpSqrtToRsq(
return false;
}
+bool AMDGPUPostLegalizerCombinerImpl::matchFDivSqrt(
+ MachineInstr &MI,
+ std::function<void(MachineIRBuilder &)> &MatchInfo) const {
+
----------------
tschuett wrote:
assert(MI.getOpode() == TargetOpcode::G_FDIV && "expected fdiv");
https://github.com/llvm/llvm-project/pull/78673
More information about the llvm-commits
mailing list