[all-commits] [llvm/llvm-project] 727a89: [FPEnv][InstSimplify] Fold fadd X, 0 ==> X, when w...

Kevin P. Neal via All-commits all-commits at lists.llvm.org
Thu Oct 14 09:33:09 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 727a891ec8c42b134dfd9ac8b830fb6072d34ef3
      https://github.com/llvm/llvm-project/commit/727a891ec8c42b134dfd9ac8b830fb6072d34ef3
  Author: Kevin P. Neal <kevin.neal at sas.com>
  Date:   2021-10-14 (Thu, 14 Oct 2021)

  Changed paths:
    M llvm/lib/Analysis/InstructionSimplify.cpp
    M llvm/test/Transforms/InstSimplify/strictfp-fadd.ll

  Log Message:
  -----------
  [FPEnv][InstSimplify] Fold fadd X, 0 ==> X, when we know X is not -0

Currently the fadd optimizations in InstSimplify don't know how to do this
NoSignedZeros "X + 0.0 ==> X" fold when using the constrained intrinsics.
This adds the support.

This review is derived from D106362 with some improvements from D107285
and is a follow-on to D111085.

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




More information about the All-commits mailing list