This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Teach getTestBitOperand to look through ANY_EXTENDS
ClosedPublic

Authored by craig.topper on Apr 9 2019, 1:03 PM.

Details

Summary

This patch teach getTestBitOperand to look through ANY_EXTENDs when the extended bits aren't used. The test case changed here is based what D60358 did to test16 in tbz-tbnz.ll. So this patch will avoid that regression.

Diff Detail

Repository
rL LLVM

Event Timeline

craig.topper created this revision.Apr 9 2019, 1:03 PM
spatel accepted this revision.Apr 10 2019, 6:13 AM

LGTM

llvm/test/CodeGen/AArch64/tbz-tbnz.ll
371 ↗(On Diff #194382)

As usual, I prefer to see positive (and complete and auto-generated) checks. The script can take a function name argument if updating this whole file is too painful.

This revision is now accepted and ready to land.Apr 10 2019, 6:13 AM
This revision was automatically updated to reflect the committed changes.