[all-commits] [llvm/llvm-project] b35c58: [ConstantRange] Respect destination bitwidth for c...

Florian Hahn via All-commits all-commits at lists.llvm.org
Fri Dec 27 09:43:33 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b35c585a9a8185ca7de378a0d45ebb68e385e7a0
      https://github.com/llvm/llvm-project/commit/b35c585a9a8185ca7de378a0d45ebb68e385e7a0
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2019-12-27 (Fri, 27 Dec 2019)

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

  Log Message:
  -----------
  [ConstantRange] Respect destination bitwidth for cast results.

We returning a full set, we should use ResultBitWidth. Otherwise we might
it assertions when the resulting constant ranges are used later on.

Reviewers: nikic, spatel, reames

Reviewed By: nikic

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




More information about the All-commits mailing list