This is an archive of the discontinued LLVM Phabricator instance.

[AArch64][GlobalISel] Walk through G_TRUNC in getTestBitReg
ClosedPublic

Authored by paquette on Jan 30 2020, 3:09 PM.

Details

Summary

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.

Diff Detail

Event Timeline

paquette created this revision.Jan 30 2020, 3:09 PM
This revision is now accepted and ready to land.Jan 31 2020, 10:19 AM
This revision was automatically updated to reflect the committed changes.