[all-commits] [llvm/llvm-project] 35c63d: [GlobalISel][CallLowering] Look through bitcasts f...

AE via All-commits all-commits at lists.llvm.org
Fri Feb 7 15:33:09 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 35c63d66aaae65a7004d94e0a6668ff19612ba5e
      https://github.com/llvm/llvm-project/commit/35c63d66aaae65a7004d94e0a6668ff19612ba5e
  Author: Amara Emerson <aemerson at apple.com>
  Date:   2020-02-07 (Fri, 07 Feb 2020)

  Changed paths:
    M llvm/lib/CodeGen/GlobalISel/CallLowering.cpp
    A llvm/test/CodeGen/AArch64/GlobalISel/call-lowering-const-bitcast-func.ll

  Log Message:
  -----------
  [GlobalISel][CallLowering] Look through bitcasts from constant function pointers.

Calls to ObjC's objc_msgSend function are done by bitcasting the function global
to the required function type signature. This patch looks through this bitcast
so that we can do a direct call with bl on arm64 instead of using an indirect blr.

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




More information about the All-commits mailing list