This is an archive of the discontinued LLVM Phabricator instance.

[RISCV][PowerPC] Fix google/benchmark benchmark::cycleclock::Now
ClosedPublic

Authored by luismarques on Apr 13 2020, 11:46 PM.

Details

Summary

This is a cherrypick of the upstream fix commit a77d5f7 onto
llvm/utils/benchmark and libcxx/utils/google-benchmark.
This fixes LLVM's 32-bit RISC-V compilation, and the issues
mentioned in https://github.com/google/benchmark/pull/955
An additional cherrypick of ecc1685 fixes some minor formatting
issues introduced by the preceding commit.

Diff Detail

Event Timeline

luismarques created this revision.Apr 13 2020, 11:46 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 13 2020, 11:46 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
lebedev.ri requested changes to this revision.Apr 14 2020, 3:08 AM

Thank you for this.
Please also update *benchmark/README.LLVM to note the cherry-pick.
Also, there's one more copy in test-suite, you may want to patch that one too, though that one is not in the monorepor.

This revision now requires changes to proceed.Apr 14 2020, 3:08 AM
ldionne accepted this revision.Apr 14 2020, 5:02 AM
ldionne added a subscriber: ldionne.

Nice, thanks! LGTM once @lebedev.ri 's comment is addressed.

luismarques edited the summary of this revision. (Show Details)
  • Also apply a cherrypick that minimizes LLVM lint formatting issues;
  • List the cherrypicks in benchmark*/README.LLVM;
  • Update summary accordingly.

Merged the */README.LLVM change entries, as having separate entries for a single LLVM commit could be confusing.

lebedev.ri accepted this revision.Apr 17 2020, 1:52 PM

LG, thank you!
Please consider following-up with similar test-suite change.

This revision is now accepted and ready to land.Apr 17 2020, 1:52 PM
This revision was automatically updated to reflect the committed changes.