[all-commits] [llvm/llvm-project] 3f1def: [clang codegen] Clean up handling of vectors with ...

Eli Friedman via All-commits all-commits at lists.llvm.org
Tue Mar 24 14:35:16 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3f1defa6e2dfdea2a5980083de2b04068f640023
      https://github.com/llvm/llvm-project/commit/3f1defa6e2dfdea2a5980083de2b04068f640023
  Author: Eli Friedman <efriedma at quicinc.com>
  Date:   2020-03-24 (Tue, 24 Mar 2020)

  Changed paths:
    M clang/lib/CodeGen/CGDecl.cpp
    M clang/test/CodeGenCXX/auto-var-init.cpp

  Log Message:
  -----------
  [clang codegen] Clean up handling of vectors with trivial-auto-var-init.

The code was pretending to be doing something useful with vectors, but
really it was doing nothing: the element type of a vector is always a
scalar type, so constWithPadding would always just return the input constant.

Split off from D75661 so it can be reviewed separately.

While I'm here, also add testcase to show missing vector handling.

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




More information about the All-commits mailing list