[all-commits] [llvm/llvm-project] 7bda1a: [OpenCL] Fix as_type(vec3) invalid store creation

Sven van Haastregt via All-commits all-commits at lists.llvm.org
Thu Aug 19 03:57:29 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7bda1a0711c67fde5f9bac5e1c9bd68163659d0e
      https://github.com/llvm/llvm-project/commit/7bda1a0711c67fde5f9bac5e1c9bd68163659d0e
  Author: Sven van Haastregt <sven.vanhaastregt at arm.com>
  Date:   2021-08-19 (Thu, 19 Aug 2021)

  Changed paths:
    M clang/lib/CodeGen/CGExprScalar.cpp
    M clang/test/CodeGenOpenCL/preserve_vec3.cl

  Log Message:
  -----------
  [OpenCL] Fix as_type(vec3) invalid store creation

With -fpreserve-vec3-type enabled, a cast was not created when
converting from a vec3 type to a non-vec3 type, even though a
conversion to vec4 was performed.  This resulted in creation of
invalid store instructions.

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




More information about the All-commits mailing list