summaryrefslogtreecommitdiffstats
path: root/llvm/tools/opt/opt.cpp
diff options
context:
space:
mode:
authorClement Courbet <courbet@google.com>2019-06-26 11:50:18 +0000
committerClement Courbet <courbet@google.com>2019-06-26 11:50:18 +0000
commit7b3a5f0e6da888655fb553c7af98db7fc1084c79 (patch)
tree6bae3226e9faf4259fbb96f887df9216c9d6c8f4 /llvm/tools/opt/opt.cpp
parent449aa3c6e8a23b0484daabd5757f4fe35572f7d7 (diff)
downloadbcm5719-llvm-7b3a5f0e6da888655fb553c7af98db7fc1084c79.tar.gz
bcm5719-llvm-7b3a5f0e6da888655fb553c7af98db7fc1084c79.zip
[ExpandMemCmp][MergeICmps] Move passes out of CodeGen into opt pipeline.
This allows later passes (in particular InstCombine) to optimize more cases. One that's important to us is `memcmp(p, q, constant) < 0` and memcmp(p, q, constant) > 0. llvm-svn: 364412
Diffstat (limited to 'llvm/tools/opt/opt.cpp')
-rw-r--r--llvm/tools/opt/opt.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/tools/opt/opt.cpp b/llvm/tools/opt/opt.cpp
index ccf8b073b82..db04e377a07 100644
--- a/llvm/tools/opt/opt.cpp
+++ b/llvm/tools/opt/opt.cpp
@@ -514,7 +514,6 @@ int main(int argc, char **argv) {
initializeTarget(Registry);
// For codegen passes, only passes that do IR to IR transformation are
// supported.
- initializeExpandMemCmpPassPass(Registry);
initializeScalarizeMaskedMemIntrinPass(Registry);
initializeCodeGenPreparePass(Registry);
initializeAtomicExpandPass(Registry);
OpenPOWER on IntegriCloud