[all-commits] [llvm/llvm-project] 5b6cae: [IR][AutoUpgrade] Drop alignment from non-pointer ...

Steven Wu via All-commits all-commits at lists.llvm.org
Thu May 20 09:55:17 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5b6cae5524905bc43cfc21a515f828528d1f2e68
      https://github.com/llvm/llvm-project/commit/5b6cae5524905bc43cfc21a515f828528d1f2e68
  Author: Steven Wu <stevenwu at apple.com>
  Date:   2021-05-20 (Thu, 20 May 2021)

  Changed paths:
    M llvm/include/llvm/IR/Argument.h
    M llvm/include/llvm/IR/InstrTypes.h
    M llvm/lib/Bitcode/Reader/BitcodeReader.cpp
    M llvm/lib/IR/AutoUpgrade.cpp
    M llvm/lib/IR/Function.cpp
    A llvm/test/Bitcode/upgrade-incompatible-func-attr-11.0.ll
    A llvm/test/Bitcode/upgrade-incompatible-func-attr-11.0.ll.bc

  Log Message:
  -----------
  [IR][AutoUpgrade] Drop alignment from non-pointer parameters and returns

This is a follow-up of D102201. After some discussion, it is a better idea
to upgrade all invalid uses of alignment attributes on function return
values and parameters, not just limited to void function return types.

Reviewed By: jdoerfert

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




More information about the All-commits mailing list