<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </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 --- - [ppc] hoist repeated constant for better code size and speed"
   href="https://llvm.org/bugs/show_bug.cgi?id=27203">27203</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[ppc] hoist repeated constant for better code size and speed
          </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>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Backend: PowerPC
          </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>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Filing a sentimental PPC sibling report for <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - [x86] optimizing for size results in bigger code because of repeated constant"
   href="show_bug.cgi?id=27202">bug 27202</a>:

define i1 @foo(i32 %i) {
  %and = and i32 %i, 305419896
  %cmp = icmp eq i32 %and, 305419896
  ret i1 %cmp
}

$ ./llc maskcmp.ll -mtriple=powerpc64 -o - 
...
    lis 4, 4660
    ori 4, 4, 22136
    and 3, 3, 4
    xoris 3, 3, 4660     <--- why bother?
    cmplwi     3, 22136    <--- use cmplw instead
    li 3, 1
    bclr 12, 2, 0
# BB#1:
    li 3, 0
    blr</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>