This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] only check the load instruction result number 0
ClosedPublic

Authored by shchenz on May 17 2021, 12:36 AM.

Details

Summary

this patch:
1: generates more reverse memory load operations, because now the transformation only bases on load instruction result number 0.
2: fixes an exposed bug related to the reverse memory load location. Without the load location fix, the fixed case would be like:

; CHECK:       # %bb.0:
; CHECK-NEXT:    stxv 34, 0(3)
; CHECK-NEXT:    lxvd2x 34, 0, 3
; CHECK-NEXT:    blr

Diff Detail

Event Timeline

shchenz created this revision.May 17 2021, 12:36 AM
shchenz requested review of this revision.May 17 2021, 12:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 17 2021, 12:36 AM
nemanjai accepted this revision.May 17 2021, 2:41 AM

LGTM. Thanks.

This revision is now accepted and ready to land.May 17 2021, 2:41 AM
This revision was landed with ongoing or failed builds.May 17 2021, 9:49 PM
This revision was automatically updated to reflect the committed changes.