This is an archive of the discontinued LLVM Phabricator instance.

[LazyMachineBFI] Add testcase
ClosedPublic

Authored by anemet on Feb 10 2017, 10:42 AM.

Details

Summary

This is based on Justin's testcase and checking whether BFI is not populated
in case hotness is off.

This is a patch meant on top of Justin's patch to enable Machine opt-remarks
in the
AsmPrinter (http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20170130/426595.html)

Diff Detail

Repository
rL LLVM

Event Timeline

anemet created this revision.Feb 10 2017, 10:42 AM
davidxl added inline comments.Feb 14 2017, 2:12 PM
test/CodeGen/AArch64/arm64-opt-remarks-lazy-bfi.ll
2 ↗(On Diff #88017)

Do you need -debug-only=block-freq here? Does it work with release build?

anemet added inline comments.Feb 14 2017, 2:17 PM
test/CodeGen/AArch64/arm64-opt-remarks-lazy-bfi.ll
2 ↗(On Diff #88017)

Yeah, I need a way to check whether BFI is being computed *here*.

This mirrors the IR test under Other/optimization-remarks-lazy-bfi.ll.

7 ↗(On Diff #88017)

Does it work with release build?

No it doesn't. This line ensures that we only run this test when asserts are enabled.

davidxl accepted this revision.Feb 14 2017, 2:21 PM

lgtm

This revision is now accepted and ready to land.Feb 14 2017, 2:21 PM
anemet updated this revision to Diff 88995.Feb 17 2017, 4:54 PM

Update after D30128

This revision was automatically updated to reflect the committed changes.