[llvm] [SROA] Propagate no-signed-zeros(nsz) fast-math flag on the phi node using function attribute (PR #83381)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue May 28 05:01:39 PDT 2024
================
@@ -0,0 +1,57 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 4
+; RUN: opt < %s -passes='sroa' -S | FileCheck %s
+define double @phi_with_nsz(double %x) "no-signed-zeros-fp-math" {
----------------
arsenm wrote:
the correct form is "no-signed-zeros-fp-math"="true". The verifier should really check this (or we should start auto upgrading to drop the pointless bool value)
https://github.com/llvm/llvm-project/pull/83381
More information about the llvm-commits
mailing list