[all-commits] [llvm/llvm-project] 95d13c: [AArch64][GlobalISel] Emit G_ASSERT_SEXT for SExt ...

Jessica Paquette via All-commits all-commits at lists.llvm.org
Mon Feb 22 10:15:33 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 95d13c01ecba5c9dba8ea1bd875c4179cbaea9e2
      https://github.com/llvm/llvm-project/commit/95d13c01ecba5c9dba8ea1bd875c4179cbaea9e2
  Author: Jessica Paquette <jpaquette at apple.com>
  Date:   2021-02-22 (Mon, 22 Feb 2021)

  Changed paths:
    M llvm/lib/Target/AArch64/GISel/AArch64CallLowering.cpp
    A llvm/test/CodeGen/AArch64/GlobalISel/call-lowering-signext.ll
    M llvm/test/CodeGen/AArch64/GlobalISel/call-translator-ios.ll

  Log Message:
  -----------
  [AArch64][GlobalISel] Emit G_ASSERT_SEXT for SExt parameters in CallLowering

Similar to how we emit G_ASSERT_ZEXT when we have CCValAssign::LocInfo::ZExt.

This will allow us to combine away some redundant sign extends.

Example: https://godbolt.org/z/cTbKvr

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




More information about the All-commits mailing list