[all-commits] [llvm/llvm-project] 04b99a: [InstSimplify] simplify abs if operand is known no...

RotateRight via All-commits all-commits at lists.llvm.org
Sat Aug 1 04:55:33 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 04b99a4d18cf13c13f1d76c5698696bcaef4e4b6
      https://github.com/llvm/llvm-project/commit/04b99a4d18cf13c13f1d76c5698696bcaef4e4b6
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2020-08-01 (Sat, 01 Aug 2020)

  Changed paths:
    M llvm/lib/Analysis/InstructionSimplify.cpp
    M llvm/test/Transforms/InstSimplify/call.ll

  Log Message:
  -----------
  [InstSimplify] simplify abs if operand is known non-negative

abs() should be rare enough that using value tracking is not going
to be a compile-time cost burden, so use it to reduce a variety of
potential patterns. We do this in DAGCombiner too.

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




More information about the All-commits mailing list