Chromium Code Reviews| Index: lib/Transforms/NaCl/PNaClABISimplify.cpp |
| diff --git a/lib/Transforms/NaCl/PNaClABISimplify.cpp b/lib/Transforms/NaCl/PNaClABISimplify.cpp |
| index a85829eb3b37e96b6dd52a1519ab4e1825759534..282910735f284d2a49ecd270d66d63477cd2a2e8 100644 |
| --- a/lib/Transforms/NaCl/PNaClABISimplify.cpp |
| +++ b/lib/Transforms/NaCl/PNaClABISimplify.cpp |
| @@ -82,6 +82,8 @@ void llvm::PNaClABISimplifyAddPostOptPasses(PassManager &PM) { |
| // ExpandGetElementPtr must follow ExpandConstantExpr to expand the |
| // getelementptr instructions it creates. |
| PM.add(createExpandGetElementPtrPass()); |
| + // Rewrite atomic and volatile instructions with intrinsic calls. |
| + PM.add(createRewriteAtomicsPass()); |
|
Mark Seaborn
2013/07/02 19:16:02
It would be better to place this before ExpandCons
|
| // ReplacePtrsWithInts assumes that getelementptr instructions and |
| // ConstantExprs have already been expanded out. |
| PM.add(createReplacePtrsWithIntsPass()); |