From 513d3e8fc531327f6860a3f47a44ca120b2588c7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 6 Sep 2002 18:39:29 +0000 Subject: [PATCH] Include stub for correlated expression elimination pass git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3597 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Transforms/Scalar.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/llvm/Transforms/Scalar.h b/include/llvm/Transforms/Scalar.h index b1a4340c1f5..2649366ff45 100644 --- a/include/llvm/Transforms/Scalar.h +++ b/include/llvm/Transforms/Scalar.h @@ -151,6 +151,15 @@ Pass *createPromoteMemoryToRegister(); // Pass *createReassociatePass(); +//===----------------------------------------------------------------------===// +// +// This pass eliminates correlated conditions, such as these: +// if (X == 0) +// if (X > 2) // Known false +// else +// Y = X * Z; // = 0 +// +Pass *createCorrelatedExpressionEliminationPass(); //===----------------------------------------------------------------------===// //