[all-commits] [llvm/llvm-project] 5ec75c: [ConstantRangeTest] Print detailed information on ...

Nikita Popov via All-commits all-commits at lists.llvm.org
Sat Feb 20 11:10:34 PST 2021


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

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

  Log Message:
  -----------
  [ConstantRangeTest] Print detailed information on failure (NFC)

When the optimality check fails, print the inputs, the computed
range and the better range that was found. This makes it much
simpler to identify the cause of the failure.

Make sure that full ranges (which, unlikely all the other cases,
have multiple ways to construct them that all result in the same
range) only print one message by handling them separately.




More information about the All-commits mailing list