pro64-support
[Top] [All Lists]

Remove simplification

To: pro64-support@xxxxxxxxxxx
Subject: Remove simplification
From: Andi Kleen <ak@xxxxxx>
Date: Sun, 13 May 2001 00:53:40 +0200
Sender: owner-pro64-support@xxxxxxxxxxx
This patch removes an incorrect simplification: !!x is not x in C.

-Andi

--- osprey1.0/common/com/wn_simp_code.h-o       Mon Mar 12 23:28:23 2001
+++ osprey1.0/common/com/wn_simp_code.h Sun May 13 00:50:36 2001
@@ -1118,7 +1118,6 @@
 /*------------------------------------------------ 
    Simplifications for ~ and !:
    
-   ! ! j                       j
    ~ ~ j                       j
    ! <comp>                     inverse comp, IEEE_comparisons false for 
floating point
    ~(a | b)                     a nor b
@@ -1133,7 +1132,7 @@
    simpnode r = NULL;
    OPCODE  inverse_relop;
    
-   if (opc == SIMPNODE_opcode(k0)) {
+   if (opc != OPR_LNOT && opc == SIMPNODE_opcode(k0)) {
       SHOW_RULE("~ ~ j -> j");
       r = SIMPNODE_kid0(k0);
       SIMP_DELETE(k0);




-- 
Life would be so much easier if we could just look at the source code.

<Prev in Thread] Current Thread [Next in Thread>