This is an archive of the discontinued LLVM Phabricator instance.

[Target/AArch64] Introduce OptimizeBarriersPass
AbandonedPublic

Authored by davide on May 8 2015, 4:49 PM.

Details

Summary

This is largely modeled after the OptimizeBarriers ARM pass. I hope it sounds reasonable to you two.
Tim, Renato, I noticed this is on also with -O0 on ARM as well, maybe we should disable this if optimization-level == 0? (it can be done in a subsequent commit)

Diff Detail

Event Timeline

davide updated this revision to Diff 25391.May 8 2015, 4:49 PM
davide retitled this revision from to [Target/AArch64] Introduce OptimizeBarriersPass.
davide updated this object.
davide edited the test plan for this revision. (Show Details)
davide added reviewers: rengolin, t.p.northover.
davide set the repository for this revision to rL LLVM.
davide added a subscriber: Unknown Object (MLST).

This seems like a plain copy of ARMOptimizeBarriersPass.cpp, minus the comments. I think we ought to avoid copy&paste as much as possible.

We should probably make this into a generic codegen pass.

cheers,
--renato

This seems like a plain copy of ARMOptimizeBarriersPass.cpp, minus the comments. I think we ought to avoid copy&paste as much as possible.

We should probably make this into a generic codegen pass.

cheers,
--renato

It makes sense, thanks! I'll go further and propse a new patch for that soon.

Davide

davide abandoned this revision.May 20 2015, 2:47 PM

Abandon this. After discussion it seems such a better idea to implement this as LLVM IR pass.
For now, r237837 prevents this to be enabled at -O0.