This is an archive of the discontinued LLVM Phabricator instance.

[LoopDataPrefetch] Make it testable with opt
ClosedPublic

Authored by anemet on Feb 19 2016, 2:20 PM.

Details

Summary

Since this is an IR pass it's nice to be able to write tests without
llc. This is the counterpart of the llc test under
CodeGen/PowerPC/loop-data-prefetch.ll.

Diff Detail

Event Timeline

anemet updated this revision to Diff 48547.Feb 19 2016, 2:20 PM
anemet retitled this revision from to [LoopDataPrefetch] Make it testable with opt.
anemet updated this object.
anemet added a reviewer: hfinkel.
anemet added a subscriber: llvm-commits.
hfinkel accepted this revision.Feb 19 2016, 4:19 PM
hfinkel edited edge metadata.

LGTM

Not specifically related to this pass, but as a general note, we should hook this up to -fprefetch-loop-arrays in Clang (name taken from gcc)/

This revision is now accepted and ready to land.Feb 19 2016, 4:19 PM

Not specifically related to this pass, but as a general note, we should hook this up to -fprefetch-loop-arrays in Clang (name taken from gcc)/

Ah, good point.

This revision was automatically updated to reflect the committed changes.