diff options
author | Jessica Paquette <jpaquette@apple.com> | 2020-01-30 14:53:37 -0800 |
---|---|---|
committer | Jessica Paquette <jpaquette@apple.com> | 2020-01-31 11:09:55 -0800 |
commit | b9bf9305d108d9f9d017d84dc38f4d0a88c5d505 (patch) | |
tree | 540b913a882fd533c5666948acba712dd84da1db /llvm/lib/IR/Module.cpp | |
parent | 574685b879acff462faa1e5e480825033c589778 (diff) | |
download | llvm-b9bf9305d108d9f9d017d84dc38f4d0a88c5d505.zip llvm-b9bf9305d108d9f9d017d84dc38f4d0a88c5d505.tar.gz llvm-b9bf9305d108d9f9d017d84dc38f4d0a88c5d505.tar.bz2 |
[AArch64][GlobalISel] Walk through G_TRUNC in getTestBitReg
When you encounter a G_TRUNC, you are moving from a larger type to a smaller
type.
Asking for the i-th bit on a larger value is the same as asking for the i-th
bit on a smaller value.
So, we should always be able to walk through G_TRUNC when computing the bit
for a TB(N)Z.
Differential Revision: https://reviews.llvm.org/D73748
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions