summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-12-26 19:32:44 +0000
committerChris Lattner <sabre@nondot.org>2010-12-26 19:32:44 +0000
commit2ef535a4e4938e8bf828198277b4a035e24275d9 (patch)
tree18a1a31c56b20d9d93782ded66ba014f09b167d8 /llvm/lib/Transforms
parent30342fb1fd0b141c9b16e9a323528913b48532ee (diff)
downloadbcm5719-llvm-2ef535a4e4938e8bf828198277b4a035e24275d9.tar.gz
bcm5719-llvm-2ef535a4e4938e8bf828198277b4a035e24275d9.zip
Start of a pass for recognizing memset and memcpy idioms.
No functionality yet. llvm-svn: 122562
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/CMakeLists.txt1
-rw-r--r--llvm/lib/Transforms/Scalar/Scalar.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/CMakeLists.txt b/llvm/lib/Transforms/Scalar/CMakeLists.txt
index 3f4ceb4b774..8173a31a86b 100644
--- a/llvm/lib/Transforms/Scalar/CMakeLists.txt
+++ b/llvm/lib/Transforms/Scalar/CMakeLists.txt
@@ -12,6 +12,7 @@ add_llvm_library(LLVMScalarOpts
JumpThreading.cpp
LICM.cpp
LoopDeletion.cpp
+ LoopIdiomRecognize.cpp
LoopRotation.cpp
LoopStrengthReduce.cpp
LoopUnrollPass.cpp
diff --git a/llvm/lib/Transforms/Scalar/Scalar.cpp b/llvm/lib/Transforms/Scalar/Scalar.cpp
index c0150935733..0eaf2895df3 100644
--- a/llvm/lib/Transforms/Scalar/Scalar.cpp
+++ b/llvm/lib/Transforms/Scalar/Scalar.cpp
@@ -44,6 +44,7 @@ void llvm::initializeScalarOpts(PassRegistry &Registry) {
initializeLoopStrengthReducePass(Registry);
initializeLoopUnrollPass(Registry);
initializeLoopUnswitchPass(Registry);
+ initializeLoopIdiomRecognizePass(Registry);
initializeLowerAtomicPass(Registry);
initializeMemCpyOptPass(Registry);
initializeReassociatePass(Registry);
OpenPOWER on IntegriCloud