[llvm] GlobalISel needs fdiv 1 / sqrt(x) to rsq combine (PR #78673)
Pierre van Houtryve via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 23 23:09:57 PST 2024
================
@@ -334,6 +336,19 @@ bool AMDGPUPostLegalizerCombinerImpl::matchRcpSqrtToRsq(
return false;
}
+void AMDGPUPostLegalizerCombinerImpl::applyOneFDivSqrtToRsq(
+ MachineInstr &MI, const Register &X) const {
+ // B.setInstrAndDebugLoc(MI);
----------------
Pierre-vh wrote:
This should already be set so you can delete it - the combiner will automatically set the insertion point to the MI being looked at
https://github.com/llvm/llvm-project/pull/78673
More information about the llvm-commits
mailing list