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

via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 22 09:52:57 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:

Changes to what your proposed.

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


More information about the llvm-commits mailing list