<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:david.majnemer@gmail.com" title="David Majnemer <david.majnemer@gmail.com>"> <span class="fn">David Majnemer</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WORKSFORME - gvn incorrectly changing sign of floating point zero"
   href="http://llvm.org/bugs/show_bug.cgi?id=22823">bug 22823</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>david.majnemer@gmail.com
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>WORKSFORME
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WORKSFORME - gvn incorrectly changing sign of floating point zero"
   href="http://llvm.org/bugs/show_bug.cgi?id=22823#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WORKSFORME - gvn incorrectly changing sign of floating point zero"
   href="http://llvm.org/bugs/show_bug.cgi?id=22823">bug 22823</a>
              from <span class="vcard"><a class="email" href="mailto:david.majnemer@gmail.com" title="David Majnemer <david.majnemer@gmail.com>"> <span class="fn">David Majnemer</span></a>
</span></b>
        <pre>I cannot reproduce with r231493:
Args: ~/llvm/Debug+Asserts/bin/opt -gvn pr22823.ll -S -o - -debug
-print-before=gvn 
*** IR Dump Before Global Value Numbering ***
define double @foo(double, double) {
top:
  %2 = fcmp une double %0, %1
  br i1 %2, label %L3, label %L1

L1:                                               ; preds = %top
  %3 = fcmp une double %1, 0.000000e+00
  br i1 %3, label %L3, label %L2

L2:                                               ; preds = %L1
  ret double %1

L3:                                               ; preds = %L1, %top
  %4 = fadd double %1, 1.000000e+00
  ret double %4
}
GVN iteration: 0
; ModuleID = 'pr22823.ll'

define double @foo(double, double) {
top:
  %2 = fcmp une double %0, %1
  br i1 %2, label %L3, label %L1

L1:                                               ; preds = %top
  %3 = fcmp une double %1, 0.000000e+00
  br i1 %3, label %L3, label %L2

L2:                                               ; preds = %L1
  ret double %1

L3:                                               ; preds = %L1, %top
  %4 = fadd double %1, 1.000000e+00
  ret double %4
}</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>