This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] Correctly specify the cache line size for Power 7, 8 and 9.
ClosedPublic

Authored by stefanp on May 29 2017, 1:01 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

stefanp created this revision.May 29 2017, 1:01 PM
jtony added inline comments.May 30 2017, 6:06 PM
test/CodeGen/PowerPC/ppc64-get-cache-line-size.ll
40 ↗(On Diff #100634)

For the function name, you may want to use CHECK-LABEL, similarly line 44. And I didn't apply this patch and generate the assembly to see, but generally speaking, if there is one instruction immediately follow another, you may want to use the stronger CHECK-NEXT if possible. Other than that LGTM.

stefanp updated this revision to Diff 100871.May 31 2017, 8:56 AM

I cleaned up the test file by using CHECK-LABEL instead of just CHECK.

echristo accepted this revision.May 31 2017, 8:57 AM

LGTM.

This revision is now accepted and ready to land.May 31 2017, 8:57 AM
This revision was automatically updated to reflect the committed changes.