[llvm] [InstSimplify] Simplify fcmp implied by dominating fcmp (PR #161090)
Rajveer Singh Bharadwaj via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 29 09:12:55 PDT 2025
================
@@ -256,7 +256,7 @@ endif: ; preds = %else, %if
define amdgpu_kernel void @copy1(ptr addrspace(1) %out, ptr addrspace(1) %in0) {
entry:
%tmp = load float, ptr addrspace(1) %in0
- %tmp1 = fcmp oeq float %tmp, 0.000000e+00
+ %tmp1 = fcmp one float %tmp, 0.000000e+00
----------------
Rajveer100 wrote:
Addition of `isImpliedCondFCmps` affects the IR is what you're saying I believe, in that case shouldn't the result be updated rather than changing the test itself?
https://github.com/llvm/llvm-project/pull/161090
More information about the llvm-commits
mailing list