OSDN Git Service

[ExpandMemCmp] Split ExpandMemCmp from CodeGen into its own pass.
authorClement Courbet <courbet@google.com>
Thu, 2 Nov 2017 15:02:51 +0000 (15:02 +0000)
committerClement Courbet <courbet@google.com>
Thu, 2 Nov 2017 15:02:51 +0000 (15:02 +0000)
commitf08c3d1d13d0fdc28dff010a88bd9f960c5ea7a9
tree7337c2252aa02fdaac8fbee8e8cbca6cecc025e9
parenta223e9099142f78a1c2463b83d5351cdfa3d2fc1
[ExpandMemCmp] Split ExpandMemCmp from CodeGen into its own pass.

Summary:
This is mostly a noop (most of the test diffs are renamed blocks).
There are a few temporary register renames (eax<->ecx) and a few blocks are
shuffled around.

See the discussion in PR33325 for more details.

Reviewers: spatel

Subscribers: mgorny

Differential Revision: https://reviews.llvm.org/D39456

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317211 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
include/llvm/InitializePasses.h
include/llvm/LinkAllPasses.h
include/llvm/Transforms/Scalar.h
lib/CodeGen/CodeGenPrepare.cpp
lib/CodeGen/TargetPassConfig.cpp
lib/Transforms/Scalar/CMakeLists.txt
lib/Transforms/Scalar/ExpandMemCmp.cpp [new file with mode: 0644]
lib/Transforms/Scalar/Scalar.cpp
test/CodeGen/Generic/llc-start-stop.ll
test/CodeGen/X86/memcmp-optsize.ll
test/CodeGen/X86/memcmp.ll
test/Transforms/ExpandMemCmp/X86/lit.local.cfg [new file with mode: 0644]
test/Transforms/ExpandMemCmp/X86/memcmp.ll [moved from test/Transforms/CodeGenPrepare/X86/memcmp.ll with 56% similarity]