aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/NaCl/PNaClABISimplify.cpp
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@chromium.org>2013-05-29 10:27:19 -0700
committerDerek Schuff <dschuff@chromium.org>2013-05-29 10:27:19 -0700
commitdc58e24a36836fc19c534bdcbef5152717a3c3fc (patch)
tree343a9c7047b58bcffb5466acb7dc3f52a481f547 /lib/Transforms/NaCl/PNaClABISimplify.cpp
parent8d01804c97533ed9006a65c11cade3c6b23d1c75 (diff)
Enable integer promotion pass and enable ABI check for integer types.
R=mseaborn@chromium.org BUG= https://code.google.com/p/nativeclient/issues/detail?id=3360 Review URL: https://codereview.chromium.org/15950006
Diffstat (limited to 'lib/Transforms/NaCl/PNaClABISimplify.cpp')
-rw-r--r--lib/Transforms/NaCl/PNaClABISimplify.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Transforms/NaCl/PNaClABISimplify.cpp b/lib/Transforms/NaCl/PNaClABISimplify.cpp
index 47e5fb67e6..71f0f23000 100644
--- a/lib/Transforms/NaCl/PNaClABISimplify.cpp
+++ b/lib/Transforms/NaCl/PNaClABISimplify.cpp
@@ -60,6 +60,9 @@ void llvm::PNaClABISimplifyAddPostOptPasses(PassManager &PM) {
// We should not place arbitrary passes after ExpandConstantExpr
// because they might reintroduce ConstantExprs.
PM.add(createExpandConstantExprPass());
+ // PromoteIntegersPass does not handle constexprs and creates GEPs,
+ // so it goes between those passes.
+ PM.add(createPromoteIntegersPass());
// ExpandGetElementPtr must follow ExpandConstantExpr to expand the
// getelementptr instructions it creates.
PM.add(createExpandGetElementPtrPass());