[all-commits] [llvm/llvm-project] 696bec: [Matrix] Remove bitcast when casting between matri...

Saurabh Jha via All-commits all-commits at lists.llvm.org
Mon May 3 07:33:41 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 696becbd139e4bbbe304ce2231de0fb50f307b68
      https://github.com/llvm/llvm-project/commit/696becbd139e4bbbe304ce2231de0fb50f307b68
  Author: Saurabh Jha <saurabh.jhaa at gmail.com>
  Date:   2021-05-03 (Mon, 03 May 2021)

  Changed paths:
    M clang/lib/CodeGen/CGExprScalar.cpp
    M clang/test/CodeGen/matrix-cast.c

  Log Message:
  -----------
  [Matrix] Remove bitcast when casting between matrices of the same size

In matrix type casts, we were doing bitcast when the matrices had the same size. This was incorrect and this patch fixes that.
Also added some new CodeGen tests for signed <-> usigned conversions

Reviewed By: fhahn

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




More information about the All-commits mailing list