[all-commits] [llvm/llvm-project] 73104b: [InstSimplify] Fold min/max based on dominating co...

Nikita Popov via All-commits all-commits at lists.llvm.org
Sat Sep 5 07:18:10 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 73104b0751a1c1dd499550bf44e47d29882fbb32
      https://github.com/llvm/llvm-project/commit/73104b0751a1c1dd499550bf44e47d29882fbb32
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2020-09-05 (Sat, 05 Sep 2020)

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

  Log Message:
  -----------
  [InstSimplify] Fold min/max based on dominating condition

If we have a dominating condition that x >= y, then umax(x, y) is x,
etc. I'm doing this in InstSimplify as the corresponding transform
for the select form is also done there.

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




More information about the All-commits mailing list