[llvm] [InstCombine] Transform high latency, dependent FSQRT/FDIV into FMUL (PR #87474)
    Nikita Popov via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Apr  9 00:53:24 PDT 2024
    
    
  
================
@@ -626,6 +626,129 @@ Instruction *InstCombinerImpl::foldPowiReassoc(BinaryOperator &I) {
   return nullptr;
 }
 
+static bool isFSqrtDivToFMulLegal(Instruction *X,
+                                  SmallSetVector<Instruction *, 2> &R1,
+                                  SmallSetVector<Instruction *, 2> &R2) {
----------------
nikic wrote:
Doesn't look like these are modified? Pass by const ref?
https://github.com/llvm/llvm-project/pull/87474
    
    
More information about the llvm-commits
mailing list