summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-04 06:23:24 +0000
committerChris Lattner <sabre@nondot.org>2010-01-04 06:23:24 +0000
commitdffbef0d76549ac400e47c3688ad2d140eb49212 (patch)
treedbd5e143bdb9ca9837b9e7e7f2132283648e75f8
parente4412c1f0b636980d77a518b76e94559830eeaed (diff)
downloadllvm-dffbef0d76549ac400e47c3688ad2d140eb49212.tar.gz
llvm-dffbef0d76549ac400e47c3688ad2d140eb49212.tar.bz2
llvm-dffbef0d76549ac400e47c3688ad2d140eb49212.tar.xz
move instcombine to its own library, it's past time.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92459 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/InstCombine/InstructionCombining.cpp (renamed from lib/Transforms/Scalar/InstructionCombining.cpp)2
-rw-r--r--lib/Transforms/Makefile2
-rw-r--r--lib/Transforms/Scalar/CMakeLists.txt1
3 files changed, 2 insertions, 3 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/InstCombine/InstructionCombining.cpp
index 03885a5e05..c0fce65460 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 025d02ad30..ea4a1158ac 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 5a92399f67..683c1c2fd7 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