[all-commits] [llvm/llvm-project] 9255a5: [TargetLowering] Only inspect attributes in the ar...

aeubanks via All-commits all-commits at lists.llvm.org
Thu Jun 3 15:52:37 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9255a5c1baa6020c009934b4fa342f9f6dbbcc46
      https://github.com/llvm/llvm-project/commit/9255a5c1baa6020c009934b4fa342f9f6dbbcc46
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2021-06-03 (Thu, 03 Jun 2021)

  Changed paths:
    M llvm/docs/ReleaseNotes.rst
    M llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
    A llvm/test/CodeGen/X86/mismatched-byval.ll

  Log Message:
  -----------
  [TargetLowering] Only inspect attributes in the arguments for ArgListEntry

Parameter attributes are considered part of the function [1], and like
mismatched calling conventions [2], we can't have the verifier check for
mismatched parameter attributes.

Issues can be diagnosed with D103412.

[1] https://llvm.org/docs/LangRef.html#parameter-attributes
[2] https://llvm.org/docs/FAQ.html#why-does-instcombine-simplifycfg-turn-a-call-to-a-function-with-a-mismatched-calling-convention-into-unreachable-why-not-make-the-verifier-reject-it

Reviewed By: rnk

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




More information about the All-commits mailing list