[llvm] [SCCP] Add context to SimplifyQuery (PR #100831)
Thomas Hashem via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 29 14:05:09 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
----------------
hashemthomas1 wrote:
My goal was to imitate the tests in: /llvm/test/Transforms/InstSimplify/constant-fold-fp-denormal.ll
since they're minimal and reproduce the "bug" in IPSCCP.
Sorry, but I didn't understand the comment on how it could be more meaningful.
But I do understand your general point of view, my goal for now was to at least make things consistent.
https://github.com/llvm/llvm-project/pull/100831
More information about the llvm-commits
mailing list