From a436cbe4bf7cc9db5a0d9eb4d43522d49de64759 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Mon, 20 Dec 2010 20:54:37 +0000 Subject: Add a new convenience pass for testing InstructionSimplify. Previously it could only be tested indirectly, via instcombine, gvn or some other pass that makes use of InstructionSimplify, which means that testcases had to be carefully contrived to dance around any other transformations that that pass did. llvm-svn: 122264 --- llvm/lib/Transforms/Utils/Utils.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/lib/Transforms/Utils/Utils.cpp') diff --git a/llvm/lib/Transforms/Utils/Utils.cpp b/llvm/lib/Transforms/Utils/Utils.cpp index 94d8fbf8770..24e8c8ff5c5 100644 --- a/llvm/lib/Transforms/Utils/Utils.cpp +++ b/llvm/lib/Transforms/Utils/Utils.cpp @@ -28,6 +28,7 @@ void llvm::initializeTransformUtils(PassRegistry &Registry) { initializeLowerSwitchPass(Registry); initializePromotePassPass(Registry); initializeUnifyFunctionExitNodesPass(Registry); + initializeInstSimplifierPass(Registry); } /// LLVMInitializeTransformUtils - C binding for initializeTransformUtilsPasses. -- cgit v1.2.3