[llvm-commits] CVS: gcc-3.4/gcc/llvm-representation.c

Chris Lattner lattner at cs.uiuc.edu
Sat Feb 14 20:27:01 PST 2004


Changes in directory gcc-3.4/gcc:

llvm-representation.c updated: 1.2 -> 1.3

---
Log message:

Oh yeah, 0.0 is a zero value too.  :)  This shrinks harness.ll from 336K -> 137K.


---
Diffs of the changes:  (+1 -1)

Index: gcc-3.4/gcc/llvm-representation.c
diff -u gcc-3.4/gcc/llvm-representation.c:1.2 gcc-3.4/gcc/llvm-representation.c:1.3
--- gcc-3.4/gcc/llvm-representation.c:1.2	Sat Feb 14 20:19:44 2004
+++ gcc-3.4/gcc/llvm-representation.c	Sat Feb 14 20:26:46 2004
@@ -459,7 +459,7 @@
   }
   default: return 0;
   case Constant:
-    return !strcmp("0", V2C(V)->Repr);
+    return !strcmp("0", V2C(V)->Repr) || !strcmp("0.0", V2C(V)->Repr);
   }
 }
 





More information about the llvm-commits mailing list