<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 - [DAGCombine] Failure to drop SETCC in (x&1)!=0"
href="https://bugs.llvm.org/show_bug.cgi?id=51312">51312</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[DAGCombine] Failure to drop SETCC in (x&1)!=0
</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>Backend: X86
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>lebedev.ri@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>craig.topper@gmail.com, llvm-bugs@lists.llvm.org, llvm-dev@redking.me.uk, pengfei.wang@intel.com, spatel+llvm@rotateright.com
</td>
</tr></table>
<p>
<div>
<pre><a href="https://godbolt.org/z/aMq33KcGz">https://godbolt.org/z/aMq33KcGz</a>
Optimized lowered selection DAG: %bb.0 'src:'
SelectionDAG has 13 nodes:
t0: ch = EntryToken
t2: v32i8,ch = CopyFromReg t0, Register:v32i8 %0
t32: v32i8 = BUILD_VECTOR Constant:i8<7>, Constant:i8<7>,
Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>,
Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>,
Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>,
Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>,
Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>,
Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>
t33: v32i8 = shl t2, t32
t25: i32 = X86ISD::MOVMSK t33
t26: i32 = parity t25
t28: i8 = truncate t26
t21: ch,glue = CopyToReg t0, Register:i8 $al, t28
t22: ch = X86ISD::RET_FLAG t21, TargetConstant:i32<0>, Register:i8 $al, t21:1
Optimized lowered selection DAG: %bb.0 'tgt:'
SelectionDAG has 16 nodes:
t0: ch = EntryToken
t2: v32i8,ch = CopyFromReg t0, Register:v32i8 %0
t24: v32i8 = BUILD_VECTOR Constant:i8<7>, Constant:i8<7>,
Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>,
Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>,
Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>,
Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>,
Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>,
Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>, Constant:i8<7>
t25: v32i8 = shl t2, t24
t20: i32 = X86ISD::MOVMSK t25
t18: i32 = parity t20
t10: i1 = setcc t18, Constant:i32<0>, setne:ch
t11: i8 = any_extend t10
t14: ch,glue = CopyToReg t0, Register:i8 $al, t11
t15: ch = X86ISD::RET_FLAG t14, TargetConstant:i32<0>, Register:i8 $al, t14:1</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>