diff options
author | Jessica Paquette <jpaquette@apple.com> | 2021-01-29 13:19:08 -0800 |
---|---|---|
committer | Jessica Paquette <jpaquette@apple.com> | 2021-02-03 16:06:05 -0800 |
commit | a1f6bb20db14ec72e2a01731dff222565eedb2ff (patch) | |
tree | 2d6dce96269a9c6ffe4466bae1f5f46c5b88b4ac /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 493f1407927cdf6db2e08f150ed9f9b8abe4ac45 (diff) | |
download | llvm-a1f6bb20db14ec72e2a01731dff222565eedb2ff.zip llvm-a1f6bb20db14ec72e2a01731dff222565eedb2ff.tar.gz llvm-a1f6bb20db14ec72e2a01731dff222565eedb2ff.tar.bz2 |
[AArch64][GlobalISel] Emit G_ASSERT_ZEXT in assignValueToAddress for ZExt params
When we have a zeroext parameter coming in on the stack, build
```
%x = G_LOAD ...
%x_assert_zext = G_ASSERT_ZEXT %x, narrow_size
%trunc = G_TRUNC %x_assert_zext
```
Rather than just loading into the truncated type.
This allows us to optimize cases like this: https://godbolt.org/z/vfjhW8
Differential Revision: https://reviews.llvm.org/D95805
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions