From 2d9948f5f1703d5b340c48248cdc6238cec586cc Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 4 Jan 2010 06:23:24 +0000 Subject: [PATCH] move instcombine to its own library, it's past time. llvm-svn: 92459 --- lib/Transforms/{Scalar => InstCombine}/InstructionCombining.cpp | 2 +- lib/Transforms/Makefile | 2 +- lib/Transforms/Scalar/CMakeLists.txt | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) rename lib/Transforms/{Scalar => InstCombine}/InstructionCombining.cpp (99%) diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/InstCombine/InstructionCombining.cpp similarity index 99% rename from lib/Transforms/Scalar/InstructionCombining.cpp rename to lib/Transforms/InstCombine/InstructionCombining.cpp index 03885a5e05a..c0fce65460d 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/InstCombine/InstructionCombining.cpp @@ -9132,7 +9132,7 @@ Instruction *InstCombiner::transformZExtICmp(ICmpInst *ICI, Instruction &CI, } Instruction *InstCombiner::visitZExt(ZExtInst &CI) { - // If one of the common conversion will work .. + // If one of the common conversion will work, do it. if (Instruction *Result = commonIntCastTransforms(CI)) return Result; diff --git a/lib/Transforms/Makefile b/lib/Transforms/Makefile index 025d02ad307..ea4a1158acc 100644 --- a/lib/Transforms/Makefile +++ b/lib/Transforms/Makefile @@ -8,7 +8,7 @@ ##===----------------------------------------------------------------------===## LEVEL = ../.. -PARALLEL_DIRS = Utils Instrumentation Scalar IPO Hello +PARALLEL_DIRS = Utils Instrumentation Scalar InstCombine IPO Hello include $(LEVEL)/Makefile.config diff --git a/lib/Transforms/Scalar/CMakeLists.txt b/lib/Transforms/Scalar/CMakeLists.txt index 5a92399f67c..683c1c2fd70 100644 --- a/lib/Transforms/Scalar/CMakeLists.txt +++ b/lib/Transforms/Scalar/CMakeLists.txt @@ -9,7 +9,6 @@ add_llvm_library(LLVMScalarOpts GEPSplitter.cpp GVN.cpp IndVarSimplify.cpp - InstructionCombining.cpp JumpThreading.cpp LICM.cpp LoopDeletion.cpp