[llvm] [IR][DAG] Add support for `nneg` flag with `uitofp` (PR #86141)
    via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Mar 21 13:01:07 PDT 2024
    
    
  
================
@@ -3005,6 +3005,12 @@ class TargetLoweringBase {
     return false;
   }
 
+  /// Return true if sitofp from FromTy to ToTy is cheaper than
+  /// uitofp.
+  virtual bool isSIToFPCheaperThanUIToFP(EVT FromTy, EVT ToTy) const {
+    return false;
----------------
goldsteinn wrote:
Any idea of the list of targets actually? I can just add those as follow up commits, think they will be relatively minor/non-controversial.
https://github.com/llvm/llvm-project/pull/86141
    
    
More information about the llvm-commits
mailing list