diff options
author | Tim Northover <tnorthover@apple.com> | 2014-04-17 18:22:47 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2014-04-17 18:22:47 +0000 |
commit | 09da6b55409ec4fbf69fedff8f74552bbad69469 (patch) | |
tree | f4dd845a05fc4bf376b95a28fcba0546568f839f /tools/opt/opt.cpp | |
parent | dd0f0d6a9dd46d83ecb81dc57adf94f8f7bb67b6 (diff) | |
download | llvm-09da6b55409ec4fbf69fedff8f74552bbad69469.tar.gz llvm-09da6b55409ec4fbf69fedff8f74552bbad69469.tar.bz2 llvm-09da6b55409ec4fbf69fedff8f74552bbad69469.tar.xz |
Atomics: promote ARM's IR-based atomics pass to CodeGen.
Still only 32-bit ARM using it at this stage, but the promotion allows
direct testing via opt and is a reasonably self-contained patch on the
way to switching ARM64.
At this point, other targets should be able to make use of it without
too much difficulty if they want. (See ARM64 commit coming soon for an
example).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206485 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/opt/opt.cpp')
-rw-r--r-- | tools/opt/opt.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index 8f958bbd0a..006d4144d3 100644 --- a/tools/opt/opt.cpp +++ b/tools/opt/opt.cpp @@ -351,8 +351,9 @@ int main(int argc, char **argv) { initializeInstrumentation(Registry); initializeTarget(Registry); // For codegen passes, only passes that do IR to IR transformation are - // supported. For now, just add CodeGenPrepare. + // supported. initializeCodeGenPreparePass(Registry); + initializeAtomicExpandLoadLinkedPass(Registry); #ifdef LINK_POLLY_INTO_TOOLS polly::initializePollyPasses(Registry); |