This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] mark r+i as legal address mode for vector type after pwr9
ClosedPublic

Authored by shchenz on Jul 28 2020, 2:18 AM.

Details

Summary

After p9, we have DQ form lxv and stxv which is a legal r+i address mode for vector type.

Add this address mode to PPCTargetLowering::isLegalAddressingMode

This will impact LSR about DQ form instructions generation.

Diff Detail

Unit TestsFailed

Event Timeline

shchenz created this revision.Jul 28 2020, 2:18 AM
Harbormaster returned this revision to the author for changes because remote builds failed.Jul 28 2020, 3:04 AM
Harbormaster failed remote builds in B65977: Diff 281151!
shchenz requested review of this revision.Jul 28 2020, 3:47 AM
shchenz edited the summary of this revision. (Show Details)
shchenz updated this revision to Diff 282494.Aug 2 2020, 7:40 PM

delete no necessary hasP10Vector()

steven.zhang accepted this revision.Aug 3 2020, 5:57 PM
steven.zhang added a subscriber: steven.zhang.

LGTM. Thank you for addressing this.

This revision is now accepted and ready to land.Aug 3 2020, 5:57 PM