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)
Details
Details
- Reviewers
rengolin t.p.northover jmolloy
Diff Detail
Diff Detail
Event Timeline
Comment Actions
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
Comment Actions
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.