[llvm] [SCCP] Add context to SimplifyQuery (PR #100831)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 29 06:38:48 PDT 2024
================
@@ -0,0 +1,21 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
+; RUN: opt -passes=sccp -S %s | FileCheck %s
+
+define float @test_ieee() #0 {
+; CHECK-LABEL: @test_ieee(
+; CHECK-NEXT: ret float 0x36F4000000000000
+;
+ %1 = fmul float 2.802596928649634e-44, 2.000000e+00
----------------
arsenm wrote:
I would prefer a more meaningful test. We probably shouldn't be making constant folding dependent on the expected FP environment of the context function, and never flush them. This test should at minimum change to use a canonicalize intrinsic
https://github.com/llvm/llvm-project/pull/100831
More information about the llvm-commits
mailing list