<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - check_cfc: dash g generate different code with Stack Slot Coloring"
href="https://bugs.llvm.org/show_bug.cgi?id=43859">43859</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>check_cfc: dash g generate different code with Stack Slot Coloring
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Common Code Generator Code
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>yechunliangcn@163.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Debug Info should have no effect on codegen, using check_cfc to scan
llvm_test_suite, find a bug here:
Reproduce:
----------------------------------------------------------------------
$HOME/llvm-project/clang/utils/check_cfc/clang++ -w -c -O1
$HOME/test-suite/MultiSource/Benchmarks/7zip/CPP/7zip/Archive/SwfHandler.cpp -o
tmp.ll -I $HOME/test-suite/MultiSource/Benchmarks/7zip/CPP/myWindows -I
$HOME/test-suite/MultiSource/Benchmarks/7zip/CPP -I
$HOME/test-suite/MultiSource/Benchmarks/7zip/CPP/include_windows
[result]
Check CFC, checking: dash_g_no_change, dash_s_no_change
/home/chris/test-suite/MultiSource/Benchmarks/7zip/CPP/7zip/Archive/SwfHandler.cpp
Code difference detected with -g
--- /tmp/tmpGFtFSg.o
+++ /tmp/tmpBtaqgK.o
@@ -522,6 +522,6 @@
647: 41 54 push %r12
649: 53 push %rbx
64a: 48 83 ec 58 sub $0x58,%rsp
- 64e: 4c 89 44 24 10 mov %r8,0x10(%rsp)
- 653: 89 4c 24 18 mov %ecx,0x18(%rsp)
+ 64e: 4c 89 44 24 08 mov %r8,0x8(%rsp)
+ 653: 89 4c 24 10 mov %ecx,0x10(%rsp)
657: 41 89 d6 mov %edx,%r14d
*** Diff truncated ***
----------------------------------------------------------------------
Reduce reproduce:
----------------------------------------------------------------------
clang++ -S -O1 -mllvm -opt-bisect-limit=5449
$HOME/test-suite/MultiSource/Benchmarks/7zip/CPP/7zip/Archive/SwfHandler.cpp -I
$HOME/test-suite/MultiSource/Benchmarks/7zip/CPP/myWindows -I
$HOME/test-suite/MultiSource/Benchmarks/7zip/CPP -I
$HOME/test-suite/MultiSource/Benchmarks/7zip/CPP/include_windows -o out1.s
2>log1
clang++ -g -S -O1 -mllvm -opt-bisect-limit=5453
$HOME/test-suite/MultiSource/Benchmarks/7zip/CPP/7zip/Archive/SwfHandler.cpp -I
$HOME/test-suite/MultiSource/Benchmarks/7zip/CPP/myWindows -I
$HOME/test-suite/MultiSource/Benchmarks/7zip/CPP -I
$HOME/test-suite/MultiSource/Benchmarks/7zip/CPP/include_windows -o out2.s
2>log2
[result]
out1.s:
1593 movq %r8, 16(%rsp) # 8-byte Spill
1594 movl %ecx, 24(%rsp) # 4-byte Spill
out2.s:
2745 movq %r8, 8(%rsp) # 8-byte Spill
2748 movl %ecx, 16(%rsp) # 4-byte Spill
log1:
BISECT: running pass (5449) Stack Slot Coloring on function
log2:
BISECT: running pass (5453) Stack Slot Coloring on function</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>