Page MenuHomePhabricator

[AArch64][GlobalISel] Walk through G_TRUNC in getTestBitReg

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



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.