[llvm] [AArch64] Let patterns for NEON instructions check runtime mode. (PR #95560)

Sander de Smalen via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 19 03:24:32 PDT 2024


================
@@ -6016,7 +6013,7 @@ def : Pat<(v2f64 (AArch64frsqrts (v2f64 FPR128:$Rn), (v2f64 FPR128:$Rm))),
 // Some float -> int -> float conversion patterns for which we want to keep the
 // int values in FP registers using the corresponding NEON instructions to
 // avoid more costly int <-> fp register transfers.
-let Predicates = [HasNEON] in {
+let Predicates = [HasNEONandIsStreamingSafe] in {
----------------
sdesmalen-arm wrote:

Good point, done!

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


More information about the llvm-commits mailing list