summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/lea-opt-cse2.ll
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2017-10-10 00:57:36 +0000
committerReid Kleckner <rnk@google.com>2017-10-10 00:57:36 +0000
commitab23dace567394515566c13d44dc85acc249651a (patch)
tree7075c6aff990774313bb1a1728c62a7b86c2bbbe /llvm/test/CodeGen/X86/lea-opt-cse2.ll
parenta11b983e11057651613305da1d10a13fc77ffd13 (diff)
downloadbcm5719-llvm-ab23dace567394515566c13d44dc85acc249651a.tar.gz
bcm5719-llvm-ab23dace567394515566c13d44dc85acc249651a.zip
[MC] Suppress .Lcfi labels when emitting textual assembly
Summary: This suppresses the generation of .Lcfi labels in our textual assembler. It was annoying that this generated cascading .Lcfi labels: llc foo.ll -o - | llvm-mc | llvm-mc After three trips through MCAsmStreamer, we'd have three labels in the output when none are necessary. We should only bother creating the labels and frame data when making a real object file. This supercedes D38605, which moved the entire .seh_ implementation into MCObjectStreamer. This has the advantage that we do more checking when emitting textual assembly, as a minor efficiency cost. Outputting textual assembly is not performance critical, so this shouldn't matter. Reviewers: majnemer, MatzeB Subscribers: qcolombet, nemanjai, javed.absar, eraman, hiraditya, JDevlieghere, llvm-commits Differential Revision: https://reviews.llvm.org/D38638 llvm-svn: 315259
Diffstat (limited to 'llvm/test/CodeGen/X86/lea-opt-cse2.ll')
-rw-r--r--llvm/test/CodeGen/X86/lea-opt-cse2.ll4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/X86/lea-opt-cse2.ll b/llvm/test/CodeGen/X86/lea-opt-cse2.ll
index 573b93dde43..865dd49a6e1 100644
--- a/llvm/test/CodeGen/X86/lea-opt-cse2.ll
+++ b/llvm/test/CodeGen/X86/lea-opt-cse2.ll
@@ -25,14 +25,10 @@ define void @foo(%struct.SA* nocapture %ctx, i32 %n) local_unnamed_addr #0 {
; X86-LABEL: foo:
; X86: # BB#0: # %entry
; X86-NEXT: pushl %edi
-; X86-NEXT: .Lcfi0:
; X86-NEXT: .cfi_def_cfa_offset 8
; X86-NEXT: pushl %esi
-; X86-NEXT: .Lcfi1:
; X86-NEXT: .cfi_def_cfa_offset 12
-; X86-NEXT: .Lcfi2:
; X86-NEXT: .cfi_offset %esi, -12
-; X86-NEXT: .Lcfi3:
; X86-NEXT: .cfi_offset %edi, -8
; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx
; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
OpenPOWER on IntegriCloud