From 06c4eaa6ecd6ed4d93c9fc1da3e03ad3ee900bec Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 25 Feb 2014 11:20:37 -0800 Subject: Re-introduce ConstantExpr expansion for constants containing illegal types. --- lib/Transforms/NaCl/PNaClABISimplify.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/Transforms/NaCl/PNaClABISimplify.cpp') diff --git a/lib/Transforms/NaCl/PNaClABISimplify.cpp b/lib/Transforms/NaCl/PNaClABISimplify.cpp index 416c38dd17..e7dcba353f 100644 --- a/lib/Transforms/NaCl/PNaClABISimplify.cpp +++ b/lib/Transforms/NaCl/PNaClABISimplify.cpp @@ -116,11 +116,9 @@ void llvm::PNaClABISimplifyAddPostOptPasses(PassManager &PM) { // are expanded out later. PM.add(createFlattenGlobalsPass()); -#if 0 // XXX EMSCRIPTEN: We can handle ConstantExprs in our backend. // We should not place arbitrary passes after ExpandConstantExpr // because they might reintroduce ConstantExprs. PM.add(createExpandConstantExprPass()); -#endif // PromoteIntegersPass does not handle constexprs and creates GEPs, // so it goes between those passes. PM.add(createPromoteIntegersPass()); -- cgit v1.2.3-70-g09d2