[all-commits] [llvm/llvm-project] 351a1b: [InstCombine] Do not perform fcmp -> icmp transfor...

Justin Holewinski via All-commits all-commits at lists.llvm.org
Fri Feb 20 02:52:16 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 351a1bb0c525ef9e7e7e90ec37ddb2f94ef88a2b
      https://github.com/llvm/llvm-project/commit/351a1bb0c525ef9e7e7e90ec37ddb2f94ef88a2b
  Author: Justin Holewinski <justin.holewinski at gmail.com>
  Date:   2026-02-20 (Fri, 20 Feb 2026)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
    M llvm/test/Transforms/InstCombine/fcmp.ll

  Log Message:
  -----------
  [InstCombine] Do not perform fcmp -> icmp transformation if denormal inputs may be flushed (#181899)

Commit 4827771234276 added the following transformation:

  fcmp oeq/une (bitcast X), 0.0 --> (and X, SignMaskC) ==/!= 0

This transformation is only valid if denormal inputs are preserved. If
they are flushed, the two comparisons can return different results.

---------

Co-authored-by: Justin Holewinski <jholewinski at nvidia.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list