[all-commits] [llvm/llvm-project] 898575: [InstSimplify] add limit folds for fmin/fmax

RotateRight via All-commits all-commits at lists.llvm.org
Tue Sep 15 08:03:44 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8985755762a429573af2ce657274772339d3b9db
      https://github.com/llvm/llvm-project/commit/8985755762a429573af2ce657274772339d3b9db
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2020-09-15 (Tue, 15 Sep 2020)

  Changed paths:
    M llvm/lib/Analysis/InstructionSimplify.cpp
    M llvm/test/Transforms/InstSimplify/fminmax-folds.ll
    M llvm/test/Transforms/PhaseOrdering/X86/vector-reductions-expanded.ll

  Log Message:
  -----------
  [InstSimplify] add limit folds for fmin/fmax

If the constant operand is the opposite of the min/max value,
then the result must be the other value.

This is based on the similar codegen transform proposed in:
D87571




More information about the All-commits mailing list