<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 - [InstCombine] fold clamp of 2-value range"
   href="https://bugs.llvm.org/show_bug.cgi?id=43053">43053</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[InstCombine] fold clamp of 2-value range
          </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>All
          </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>Scalar Optimizations
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>spatel+llvm@rotateright.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Forking this off from <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Missed scalar min max optimization using vector min/max on Haswelll"
   href="show_bug.cgi?id=39898">bug 39898</a> because it's morphed into something different
than it started as:

Pre: C2 == C1 - 1
  %cmp1 = icmp slt i32 %num, C1
  %s1 = select i1 %cmp1, i32 %num, i32 C1
  %cmp2 = icmp sgt i32 %s1, C2
  %r = select i1 %cmp2, i32 %s1, i32 C2
=>
  %cmp3 = icmp sgt %num, C2
  %z = zext i1 %cmp3 to i32
  %r = add i32 %z, C2

<a href="https://rise4fun.com/Alive/2sl8">https://rise4fun.com/Alive/2sl8</a></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>