[all-commits] [llvm/llvm-project] a85223: [ConstantRange] Handle wrapping ranges in min/max ...

Nikita Popov via All-commits all-commits at lists.llvm.org
Sat Feb 20 13:52:50 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a852234f70e344b238824b9d71e8df9c46de62f2
      https://github.com/llvm/llvm-project/commit/a852234f70e344b238824b9d71e8df9c46de62f2
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-02-20 (Sat, 20 Feb 2021)

  Changed paths:
    M llvm/lib/IR/ConstantRange.cpp
    M llvm/unittests/IR/ConstantRangeTest.cpp

  Log Message:
  -----------
  [ConstantRange] Handle wrapping ranges in min/max (PR48643)

When one of the inputs is a wrapping range, intersect with the
union of the two inputs. The union of the two inputs corresponds
to the result we would get if we treated the min/max as a simple
select.

This fixes PR48643.




More information about the All-commits mailing list