[llvm] InstCombine: Fix another wrong interested mask computeKnownFPClass call (PR #174135)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 1 00:47:54 PST 2026


https://github.com/arsenm created https://github.com/llvm/llvm-project/pull/174135

Follow up from c436551d5283a8fc00ae880a5b76660b6f08e37b, this is another
instance of the same problem.

>From deaed480cb3874c1702d862fbbc460c37ad9e9c9 Mon Sep 17 00:00:00 2001
From: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: Thu, 1 Jan 2026 09:15:43 +0100
Subject: [PATCH] InstCombine: Fix another wrong interested mask
 computeKnownFPClass call

Follow up from c436551d5283a8fc00ae880a5b76660b6f08e37b, this is another
instance of the same problem.
---
 llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp b/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
index 07fad1f542e84..554c5d82c3085 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
@@ -2266,7 +2266,7 @@ Value *InstCombinerImpl::SimplifyDemandedUseFPClass(Value *V,
       [[fallthrough]];
     }
     default:
-      Known = computeKnownFPClass(I, ~DemandedMask, CxtI, Depth + 1);
+      Known = computeKnownFPClass(I, DemandedMask, CxtI, Depth + 1);
       break;
     }
 



More information about the llvm-commits mailing list