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

Krishnakariya via All-commits all-commits at lists.llvm.org
Sat Aug 7 10:09:42 PDT 2021


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

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
    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