[all-commits] [llvm/llvm-project] 5f6b4c: [InstCombine] Remove nnan requirement for transfor...

Krishnakariya via All-commits all-commits at lists.llvm.org
Mon Aug 9 10:29:24 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5f6b4ce7de65daec4edce1048f642547ee6fa8c5
      https://github.com/llvm/llvm-project/commit/5f6b4ce7de65daec4edce1048f642547ee6fa8c5
  Author: Krishna <krishna17060 at iiitd.ac.in>
  Date:   2021-08-09 (Mon, 09 Aug 2021)

  Changed paths:
    M llvm/test/Transforms/InstCombine/fabs.ll

  Log Message:
  -----------
  [InstCombine] Remove nnan requirement for transformation to fabs from select

In this patch, the "nnan" requirement is removed for the canonicalization of select with fcmp to fabs.
(i) FSub logic: Remove check for nnan flag presence in fsub. Example: https://alive2.llvm.org/ce/z/751svg (fsub).
(ii) FNeg logic: Remove check for the presence of nnan and nsz flag in fneg. Example: https://alive2.llvm.org/ce/z/a_fsdp (fneg).

Reviewed By: spatel

Differential Revision: https://reviews.llvm.org/D106872




More information about the All-commits mailing list