[llvm] [AArch64] Avoid streaming mode hazards from FP constant stores (PR #114207)

Sander de Smalen via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 31 06:15:09 PDT 2024


================
@@ -489,6 +489,10 @@ class TargetLoweringBase {
     return true;
   }
 
+  /// Returns true if a floating-point load or store can be replaced with an
+  /// equivalent integer load or store without negatively affecting performance.
+  virtual bool canUseIntLoadStoreForFloatValues() const { return true; }
----------------
sdesmalen-arm wrote:

I'd like to suggest a better name, but I'm struggling to come up with one. Perhaps you should replace `can` by `should` in the name to make the distinction more clear?

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


More information about the llvm-commits mailing list