[llvm] [IR][DAG] Add support for `nneg` flag with `uitofp` (PR #86141)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 21 12:23:54 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;
----------------
dtcxzyw wrote:

It should be true for X86 target?

https://github.com/llvm/llvm-project/pull/86141


More information about the llvm-commits mailing list