[llvm] [AArch64] Avoid streaming mode hazards from FP constant stores (PR #114207)
Sander de Smalen via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 1 06:22:01 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:
What about creating a `virtual EVT TargetLowering::getPreferredStoreTypeForConstant(SDNode *C) const;` that returns an appropriate type? This could then also do the check to see if the integer type is legal, for example.
https://github.com/llvm/llvm-project/pull/114207
More information about the llvm-commits
mailing list