[all-commits] [llvm/llvm-project] d68bed: [SCCP] Handle bitcast of vector constants.

Florian Hahn via All-commits all-commits at lists.llvm.org
Tue Nov 3 04:59:26 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d68bed0fa94e133f79c14248621f8c5544f7bdd9
      https://github.com/llvm/llvm-project/commit/d68bed0fa94e133f79c14248621f8c5544f7bdd9
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2020-11-03 (Tue, 03 Nov 2020)

  Changed paths:
    M llvm/lib/Transforms/Scalar/SCCP.cpp
    M llvm/test/Transforms/SCCP/vector-bitcast.ll

  Log Message:
  -----------
  [SCCP] Handle bitcast of vector constants.

Vectors where all elements have the same known constant range are treated as a
single constant range in the lattice. When bitcasting such vectors, there is a
mis-match between the width of the lattice value (single constant range) and
the original operands (vector). Go to overdefined in that case.

Fixes PR47991.




More information about the All-commits mailing list