summaryrefslogtreecommitdiff
path: root/llvm/test/Bitcode/thinlto-function-summary.ll
diff options
context:
space:
mode:
authorAlexander Shaposhnikov <ashaposhnikov@google.com>2022-11-14 23:15:19 +0000
committerAlexander Shaposhnikov <ashaposhnikov@google.com>2022-11-14 23:24:08 +0000
commitbf8381a8bce28fc69857645cc7e84a72317e693e (patch)
tree1d9da80180bf8d062246bbdb15016c8f6ab5c87a /llvm/test/Bitcode/thinlto-function-summary.ll
parent2d9d805c74fcde1906c7ad1d949f5136e777c0f3 (diff)
[opt][clang] Enable using -module-summary/-flto=thin with -S/-emit-llvm
Enable using -module-summary with -S (similarly to what currently can be achieved with opt <input> -o - | llvm-dis). This is a recommit of ef9e62469. Test plan: ninja check-all Differential revision: https://reviews.llvm.org/D137768
Diffstat (limited to 'llvm/test/Bitcode/thinlto-function-summary.ll')
-rw-r--r--llvm/test/Bitcode/thinlto-function-summary.ll2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/thinlto-function-summary.ll b/llvm/test/Bitcode/thinlto-function-summary.ll
index ad745dd826ac..68636ed192a1 100644
--- a/llvm/test/Bitcode/thinlto-function-summary.ll
+++ b/llvm/test/Bitcode/thinlto-function-summary.ll
@@ -31,6 +31,8 @@
; RUN: opt -passes=name-anon-globals -module-summary < %s | llvm-dis | FileCheck %s
+; RUN: opt -passes=name-anon-globals -module-summary -S < %s | FileCheck %s
+; RUN: opt -passes=name-anon-globals -module-summary -S < %s | llvm-as | llvm-dis | FileCheck %s
; Check that this round-trips correctly.
; ModuleID = '<stdin>'