[AArch64][GlobalISel] Emit G_ASSERT_ZEXT in assignValueToReg
authorJessica Paquette <jpaquette@apple.com>
Wed, 27 Jan 2021 22:14:35 +0000 (14:14 -0800)
committerJessica Paquette <jpaquette@apple.com>
Mon, 1 Feb 2021 18:01:52 +0000 (10:01 -0800)
commitcf2be5e3bb3dae347af41ab6117f3e9b250cc8c3
tree1a37b0ec5b8a491478d7d73e6d786a50f8f4209d
parent7f2e0879b5b45815207a986eac2d614649aea526
[AArch64][GlobalISel] Emit G_ASSERT_ZEXT in assignValueToReg

When we have a zeroext parameter, emit G_ASSERT_ZEXT.

Add a check that we actually emit it.

This is a 0.1% code size win on CTMark/7zip and CTMark/consumer-typeset at -Os.

Differential Revision: https://reviews.llvm.org/D95567
llvm/lib/Target/AArch64/GISel/AArch64CallLowering.cpp
llvm/test/CodeGen/AArch64/GlobalISel/call-lowering-zeroext.ll [new file with mode: 0644]