[all-commits] [llvm/llvm-project] 224a8c: [GlobalISel][CallLowering] Look through call param...

Jessica Paquette via All-commits all-commits at lists.llvm.org
Tue Aug 18 09:00:13 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 224a8c639eeb36b7a5ac6f8a50295f9ee2cb2518
      https://github.com/llvm/llvm-project/commit/224a8c639eeb36b7a5ac6f8a50295f9ee2cb2518
  Author: Jessica Paquette <jpaquette at apple.com>
  Date:   2020-08-18 (Tue, 18 Aug 2020)

  Changed paths:
    M llvm/include/llvm/CodeGen/GlobalISel/CallLowering.h
    M llvm/lib/CodeGen/GlobalISel/CallLowering.cpp
    M llvm/test/CodeGen/AArch64/GlobalISel/call-translator.ll
    M llvm/test/CodeGen/AArch64/GlobalISel/swifterror.ll
    M llvm/test/CodeGen/AArch64/GlobalISel/swiftself.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-call-sret.ll

  Log Message:
  -----------
  [GlobalISel][CallLowering] Look through call parameters for flags

We weren't looking through the parameters on calls at all.

E.g., say you had

```
declare i32 @zext(i32 zeroext %x)

...
%y = call i32 @zext(i32 %something)
...

```

At the point of the call, we wouldn't know that the %something should have the
zeroext attribute.

This sets flags in about the same way as
TargetLoweringBase::ArgListEntry::setAttributes.

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




More information about the All-commits mailing list