[all-commits] [llvm/llvm-project] 98cad5: [Clang][AArch64] Capturing proper pointer alignmen...

Lucas Duarte Prates via All-commits all-commits at lists.llvm.org
Tue May 26 02:09:54 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 98cad555e29187a03e2bc3db5780762981913902
      https://github.com/llvm/llvm-project/commit/98cad555e29187a03e2bc3db5780762981913902
  Author: Lucas Prates <lucas.prates at arm.com>
  Date:   2020-05-26 (Tue, 26 May 2020)

  Changed paths:
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/test/CodeGen/aarch64-neon-intrinsics.c

  Log Message:
  -----------
  [Clang][AArch64] Capturing proper pointer alignment for Neon vld1 intrinsicts

Summary:
During CodeGen for AArch64 Neon intrinsics, Clang was incorrectly
assuming all the pointers from which loads were being generated for vld1
intrinsics were aligned according to the intrinsics result type, causing
alignment faults on the code generated by the backend.

This patch updates vld1 intrinsics' CodeGen to properly capture the
correct load alignment based on the type of the pointer provided as
input for the intrinsic.

Reviewers: t.p.northover, ostannard, pcc

Reviewed By: ostannard

Subscribers: kristof.beyls, danielkiss, cfe-commits

Tags: #clang

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




More information about the All-commits mailing list