[all-commits] [llvm/llvm-project] a148b9: [InstCombine] Fix infinite min/max canonicalizatio...

Nikita Popov via All-commits all-commits at lists.llvm.org
Sat Feb 8 11:44:29 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a148b9e9909db6a592609eb35b4de38c9e67cb8b
      https://github.com/llvm/llvm-project/commit/a148b9e9909db6a592609eb35b4de38c9e67cb8b
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2020-02-08 (Sat, 08 Feb 2020)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
    A llvm/test/Transforms/InstCombine/pr44541.ll

  Log Message:
  -----------
  [InstCombine] Fix infinite min/max canonicalization loop (PR44541)

While D72944 also fixes https://bugs.llvm.org/show_bug.cgi?id=44541,
it does so in a more roundabout manner and there might be other
loopholes to trigger the same issue. This is a more direct fix,
that prevents the transform if the min/max is based on a
non-canonical sub X, 0 instruction.

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




More information about the All-commits mailing list