[llvm-commits] [llvm] r78816 - in /llvm/trunk: lib/VMCore/AsmWriter.cpp test/Analysis/ScalarEvolution/avoid-smax-1.ll test/Integer/a15.ll.out test/Integer/a17.ll.out test/Integer/a31.ll.out test/Integer/a33.ll.out test/Integer/a63.ll.out test/Integer/a7.ll.out test/Integer/a9.ll.out test/Transforms/InstCombine/urem-simplify-bug.ll

Dan Gohman gohman at apple.com
Wed Aug 12 10:23:50 PDT 2009


Author: djg
Date: Wed Aug 12 12:23:50 2009
New Revision: 78816

URL: http://llvm.org/viewvc/llvm-project?rev=78816&view=rev
Log:
Make LLVM Assembly dramatically easier to read by aligning the comments,
using formatted_raw_ostream's PadToColumn.

Before:

bb1:            ; preds = %bb
  %2 = sext i32 %i.01 to i64            ; <i64> [#uses=1]
  %3 = getelementptr double* %p, i64 %2         ; <double*> [#uses=1]
  %4 = load double* %3, align 8         ; <double> [#uses=1]
  %5 = fmul double %4, 1.100000e+00             ; <double> [#uses=1]
  %6 = sext i32 %i.01 to i64            ; <i64> [#uses=1]
  %7 = getelementptr double* %p, i64 %6         ; <double*> [#uses=1]

After:

bb1:                                        ; preds = %bb
  %2 = sext i32 %i.01 to i64                ; <i64> [#uses=1]
  %3 = getelementptr double* %p, i64 %2     ; <double*> [#uses=1]
  %4 = load double* %3, align 8             ; <double> [#uses=1]
  %5 = fmul double %4, 1.100000e+00         ; <double> [#uses=1]
  %6 = sext i32 %i.01 to i64                ; <i64> [#uses=1]
  %7 = getelementptr double* %p, i64 %6     ; <double*> [#uses=1]

Several tests required whitespace adjustments.

Modified:
    llvm/trunk/lib/VMCore/AsmWriter.cpp
    llvm/trunk/test/Analysis/ScalarEvolution/avoid-smax-1.ll
    llvm/trunk/test/Integer/a15.ll.out
    llvm/trunk/test/Integer/a17.ll.out
    llvm/trunk/test/Integer/a31.ll.out
    llvm/trunk/test/Integer/a33.ll.out
    llvm/trunk/test/Integer/a63.ll.out
    llvm/trunk/test/Integer/a7.ll.out
    llvm/trunk/test/Integer/a9.ll.out
    llvm/trunk/test/Transforms/InstCombine/urem-simplify-bug.ll

Modified: llvm/trunk/lib/VMCore/AsmWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/AsmWriter.cpp?rev=78816&r1=78815&r2=78816&view=diff

==============================================================================
--- llvm/trunk/lib/VMCore/AsmWriter.cpp (original)
+++ llvm/trunk/lib/VMCore/AsmWriter.cpp Wed Aug 12 12:23:50 2009
@@ -34,7 +34,7 @@
 #include "llvm/Support/CFG.h"
 #include "llvm/Support/ErrorHandling.h"
 #include "llvm/Support/MathExtras.h"
-#include "llvm/Support/raw_ostream.h"
+#include "llvm/Support/FormattedStream.h"
 #include <algorithm>
 #include <cctype>
 #include <map>
@@ -66,7 +66,8 @@
 
 // PrintEscapedString - Print each character of the specified string, escaping
 // it if it is not printable or if it is an escape char.
-static void PrintEscapedString(const StringRef &Name, raw_ostream &Out) {
+static void PrintEscapedString(const StringRef &Name,
+                               formatted_raw_ostream &Out) {
   for (unsigned i = 0, e = Name.size(); i != e; ++i) {
     unsigned char C = Name[i];
     if (isprint(C) && C != '\\' && C != '"')
@@ -86,7 +87,7 @@
 /// PrintLLVMName - Turn the specified name into an 'LLVM name', which is either
 /// prefixed with % (if the string only contains simple characters) or is
 /// surrounded with ""'s (if it has special chars in it).  Print it out.
-static void PrintLLVMName(raw_ostream &OS, const StringRef &Name,
+static void PrintLLVMName(formatted_raw_ostream &OS, const StringRef &Name,
                           PrefixType Prefix) {
   assert(Name.data() && "Cannot get empty name!");
   switch (Prefix) {
@@ -125,7 +126,7 @@
 /// PrintLLVMName - Turn the specified name into an 'LLVM name', which is either
 /// prefixed with % (if the string only contains simple characters) or is
 /// surrounded with ""'s (if it has special chars in it).  Print it out.
-static void PrintLLVMName(raw_ostream &OS, const Value *V) {
+static void PrintLLVMName(formatted_raw_ostream &OS, const Value *V) {
   PrintLLVMName(OS, V->getName(), 
                 isa<GlobalValue>(V) ? GlobalPrefix : LocalPrefix);
 }
@@ -425,9 +426,11 @@
     
     // Get the name as a string and insert it into TypeNames.
     std::string NameStr;
-    raw_string_ostream NameOS(NameStr);
+    raw_string_ostream NameROS(NameStr);
+    formatted_raw_ostream NameOS(NameROS);
     PrintLLVMName(NameOS, TI->first, LocalPrefix);
-    TP.addTypeName(Ty, NameOS.str());
+    NameOS.flush();
+    TP.addTypeName(Ty, NameStr);
   }
   
   // Walk the entire module to find references to unnamed structure and opaque
@@ -814,7 +817,7 @@
 // AsmWriter Implementation
 //===----------------------------------------------------------------------===//
 
-static void WriteAsOperandInternal(raw_ostream &Out, const Value *V,
+static void WriteAsOperandInternal(formatted_raw_ostream &Out, const Value *V,
                                    TypePrinting &TypePrinter,
                                    SlotTracker *Machine);
 
@@ -853,7 +856,7 @@
   return pred;
 }
 
-static void WriteMDNodes(raw_ostream &Out, TypePrinting &TypePrinter,
+static void WriteMDNodes(formatted_raw_ostream &Out, TypePrinting &TypePrinter,
                          SlotTracker &Machine) {
   SmallVector<const MDNode *, 16> Nodes;
   Nodes.resize(Machine.mdnSize());
@@ -886,7 +889,7 @@
   }
 }
 
-static void WriteOptimizationInfo(raw_ostream &Out, const User *U) {
+static void WriteOptimizationInfo(formatted_raw_ostream &Out, const User *U) {
   if (const OverflowingBinaryOperator *OBO =
         dyn_cast<OverflowingBinaryOperator>(U)) {
     if (OBO->hasNoUnsignedOverflow())
@@ -902,7 +905,7 @@
   }
 }
 
-static void WriteConstantInt(raw_ostream &Out, const Constant *CV,
+static void WriteConstantInt(formatted_raw_ostream &Out, const Constant *CV,
                              TypePrinting &TypePrinter, SlotTracker *Machine) {
   if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) {
     if (CI->getType() == Type::Int1Ty) {
@@ -1143,7 +1146,7 @@
 /// ostream.  This can be useful when you just want to print int %reg126, not
 /// the whole instruction that generated it.
 ///
-static void WriteAsOperandInternal(raw_ostream &Out, const Value *V,
+static void WriteAsOperandInternal(formatted_raw_ostream &Out, const Value *V,
                                    TypePrinting &TypePrinter,
                                    SlotTracker *Machine) {
   if (V->hasName()) {
@@ -1233,14 +1236,15 @@
     Out << ' ';
   }
 
-  WriteAsOperandInternal(Out, V, TypePrinter, 0);
+  formatted_raw_ostream FOut(Out);
+  WriteAsOperandInternal(FOut, V, TypePrinter, 0);
 }
 
 
 namespace {
 
 class AssemblyWriter {
-  raw_ostream &Out;
+  formatted_raw_ostream &Out;
   SlotTracker &Machine;
   const Module *TheModule;
   TypePrinting TypePrinter;
@@ -1251,7 +1255,8 @@
   std::map<const MDNode *, unsigned> MDNodes;
   unsigned MetadataIDNo;
 public:
-  inline AssemblyWriter(raw_ostream &o, SlotTracker &Mac, const Module *M,
+  inline AssemblyWriter(formatted_raw_ostream &o, SlotTracker &Mac,
+                        const Module *M,
                         AssemblyAnnotationWriter *AAW)
     : Out(o), Machine(Mac), TheModule(M), AnnotationWriter(AAW), MetadataIDNo(0) {
     AddModuleTypesToPrinter(TypePrinter, NumberedTypes, M);
@@ -1403,7 +1408,8 @@
   WriteMDNodes(Out, TypePrinter, Machine);
 }
 
-static void PrintLinkage(GlobalValue::LinkageTypes LT, raw_ostream &Out) {
+static void PrintLinkage(GlobalValue::LinkageTypes LT,
+                         formatted_raw_ostream &Out) {
   switch (LT) {
   case GlobalValue::ExternalLinkage: break;
   case GlobalValue::PrivateLinkage:       Out << "private ";        break;
@@ -1428,7 +1434,7 @@
 
 
 static void PrintVisibility(GlobalValue::VisibilityTypes Vis,
-                            raw_ostream &Out) {
+                            formatted_raw_ostream &Out) {
   switch (Vis) {
   default: llvm_unreachable("Invalid visibility style!");
   case GlobalValue::DefaultVisibility: break;
@@ -1519,7 +1525,8 @@
     // Make sure we print out at least one level of the type structure, so
     // that we do not get %2 = type %2
     TypePrinter.printAtLeastOneLevel(NumberedTypes[i], Out);
-    Out << "\t\t; type %" << i << '\n';
+    Out.PadToColumn(50);
+    Out << "; type %" << i << '\n';
   }
   
   // Print the named types.
@@ -1668,11 +1675,13 @@
       Out << "<badref>";
   }
 
-  if (BB->getParent() == 0)
-    Out << "\t\t; Error: Block without parent!";
-  else if (BB != &BB->getParent()->getEntryBlock()) {  // Not the entry block?
+  if (BB->getParent() == 0) {
+    Out.PadToColumn(50);
+    Out << "; Error: Block without parent!";
+  } else if (BB != &BB->getParent()->getEntryBlock()) {  // Not the entry block?
     // Output predecessors for the block...
-    Out << "\t\t;";
+    Out.PadToColumn(50);
+    Out << ";";
     pred_const_iterator PI = pred_begin(BB), PE = pred_end(BB);
     
     if (PI == PE) {
@@ -1706,7 +1715,8 @@
 ///
 void AssemblyWriter::printInfoComment(const Value &V) {
   if (V.getType() != Type::VoidTy) {
-    Out << "\t\t; <";
+    Out.PadToColumn(50);
+    Out << "; <";
     TypePrinter.print(V.getType(), Out);
     Out << '>';
 
@@ -1991,8 +2001,9 @@
   raw_os_ostream OS(o);
   print(OS, AAW);
 }
-void Module::print(raw_ostream &OS, AssemblyAnnotationWriter *AAW) const {
+void Module::print(raw_ostream &ROS, AssemblyAnnotationWriter *AAW) const {
   SlotTracker SlotTable(this);
+  formatted_raw_ostream OS(ROS);
   AssemblyWriter W(OS, SlotTable, this, AAW);
   W.write(this);
 }
@@ -2010,7 +2021,8 @@
   TypePrinting().print(this, OS);
 }
 
-void Value::print(raw_ostream &OS, AssemblyAnnotationWriter *AAW) const {
+void Value::print(raw_ostream &ROS, AssemblyAnnotationWriter *AAW) const {
+  formatted_raw_ostream OS(ROS);
   if (this == 0) {
     OS << "printing a <null> value\n";
     return;

Modified: llvm/trunk/test/Analysis/ScalarEvolution/avoid-smax-1.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Analysis/ScalarEvolution/avoid-smax-1.ll?rev=78816&r1=78815&r2=78816&view=diff

==============================================================================
--- llvm/trunk/test/Analysis/ScalarEvolution/avoid-smax-1.ll (original)
+++ llvm/trunk/test/Analysis/ScalarEvolution/avoid-smax-1.ll Wed Aug 12 12:23:50 2009
@@ -1,6 +1,6 @@
 ; RUN: llvm-as < %s | opt -indvars | llvm-dis > %t
 ; RUN: grep select %t | count 2
-; RUN: grep {icmp ne i32.\* %w	} %t
+; RUN: grep {icmp ne i32.\* %w } %t
 
 ; Indvars should be able to insert a canonical induction variable
 ; for the bb6 loop without using a maximum calculation (icmp, select)

Modified: llvm/trunk/test/Integer/a15.ll.out
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Integer/a15.ll.out?rev=78816&r1=78815&r2=78816&view=diff

==============================================================================
--- llvm/trunk/test/Integer/a15.ll.out (original)
+++ llvm/trunk/test/Integer/a15.ll.out Wed Aug 12 12:23:50 2009
@@ -1,20 +1,20 @@
 ; ModuleID = '<stdin>'
- at b = constant i15 0		; <i15*> [#uses=0]
- at c = constant i15 -2		; <i15*> [#uses=0]
- at d = constant i15 0		; <i15*> [#uses=0]
- at e = constant i15 -1		; <i15*> [#uses=0]
- at f = constant i15 1		; <i15*> [#uses=0]
- at g = constant i15 3		; <i15*> [#uses=0]
- at h = constant i15 undef		; <i15*> [#uses=0]
- at i = constant i15 -16384		; <i15*> [#uses=0]
- at j = constant i15 1		; <i15*> [#uses=0]
- at l = constant i15 -1		; <i15*> [#uses=0]
- at n = constant i15 -2		; <i15*> [#uses=0]
- at q = constant i15 16381		; <i15*> [#uses=0]
- at r = constant i15 0		; <i15*> [#uses=0]
- at s = constant i15 2		; <i15*> [#uses=0]
- at t = constant i15 1		; <i15*> [#uses=0]
- at u = constant i15 0		; <i15*> [#uses=0]
- at o = constant i15 0		; <i15*> [#uses=0]
- at p = constant i15 -1		; <i15*> [#uses=0]
- at v = constant i15 -1		; <i15*> [#uses=0]
+ at b = constant i15 0                               ; <i15*> [#uses=0]
+ at c = constant i15 -2                              ; <i15*> [#uses=0]
+ at d = constant i15 0                               ; <i15*> [#uses=0]
+ at e = constant i15 -1                              ; <i15*> [#uses=0]
+ at f = constant i15 1                               ; <i15*> [#uses=0]
+ at g = constant i15 3                               ; <i15*> [#uses=0]
+ at h = constant i15 undef                           ; <i15*> [#uses=0]
+ at i = constant i15 -16384                          ; <i15*> [#uses=0]
+ at j = constant i15 1                               ; <i15*> [#uses=0]
+ at l = constant i15 -1                              ; <i15*> [#uses=0]
+ at n = constant i15 -2                              ; <i15*> [#uses=0]
+ at q = constant i15 16381                           ; <i15*> [#uses=0]
+ at r = constant i15 0                               ; <i15*> [#uses=0]
+ at s = constant i15 2                               ; <i15*> [#uses=0]
+ at t = constant i15 1                               ; <i15*> [#uses=0]
+ at u = constant i15 0                               ; <i15*> [#uses=0]
+ at o = constant i15 0                               ; <i15*> [#uses=0]
+ at p = constant i15 -1                              ; <i15*> [#uses=0]
+ at v = constant i15 -1                              ; <i15*> [#uses=0]

Modified: llvm/trunk/test/Integer/a17.ll.out
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Integer/a17.ll.out?rev=78816&r1=78815&r2=78816&view=diff

==============================================================================
--- llvm/trunk/test/Integer/a17.ll.out (original)
+++ llvm/trunk/test/Integer/a17.ll.out Wed Aug 12 12:23:50 2009
@@ -1,19 +1,19 @@
 ; ModuleID = '<stdin>'
- at b = constant i17 0		; <i17*> [#uses=0]
- at c = constant i17 -2		; <i17*> [#uses=0]
- at d = constant i17 0		; <i17*> [#uses=0]
- at e = constant i17 -1		; <i17*> [#uses=0]
- at f = constant i17 1		; <i17*> [#uses=0]
- at g = constant i17 3		; <i17*> [#uses=0]
- at h = constant i17 undef		; <i17*> [#uses=0]
- at i = constant i17 -65536		; <i17*> [#uses=0]
- at j = constant i17 1		; <i17*> [#uses=0]
- at l = constant i17 -1		; <i17*> [#uses=0]
- at n = constant i17 -2		; <i17*> [#uses=0]
- at q = constant i17 0		; <i17*> [#uses=0]
- at r = constant i17 2		; <i17*> [#uses=0]
- at s = constant i17 1		; <i17*> [#uses=0]
- at t = constant i17 0		; <i17*> [#uses=0]
- at o = constant i17 0		; <i17*> [#uses=0]
- at p = constant i17 -1		; <i17*> [#uses=0]
- at v = constant i17 -1		; <i17*> [#uses=0]
+ at b = constant i17 0                               ; <i17*> [#uses=0]
+ at c = constant i17 -2                              ; <i17*> [#uses=0]
+ at d = constant i17 0                               ; <i17*> [#uses=0]
+ at e = constant i17 -1                              ; <i17*> [#uses=0]
+ at f = constant i17 1                               ; <i17*> [#uses=0]
+ at g = constant i17 3                               ; <i17*> [#uses=0]
+ at h = constant i17 undef                           ; <i17*> [#uses=0]
+ at i = constant i17 -65536                          ; <i17*> [#uses=0]
+ at j = constant i17 1                               ; <i17*> [#uses=0]
+ at l = constant i17 -1                              ; <i17*> [#uses=0]
+ at n = constant i17 -2                              ; <i17*> [#uses=0]
+ at q = constant i17 0                               ; <i17*> [#uses=0]
+ at r = constant i17 2                               ; <i17*> [#uses=0]
+ at s = constant i17 1                               ; <i17*> [#uses=0]
+ at t = constant i17 0                               ; <i17*> [#uses=0]
+ at o = constant i17 0                               ; <i17*> [#uses=0]
+ at p = constant i17 -1                              ; <i17*> [#uses=0]
+ at v = constant i17 -1                              ; <i17*> [#uses=0]

Modified: llvm/trunk/test/Integer/a31.ll.out
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Integer/a31.ll.out?rev=78816&r1=78815&r2=78816&view=diff

==============================================================================
--- llvm/trunk/test/Integer/a31.ll.out (original)
+++ llvm/trunk/test/Integer/a31.ll.out Wed Aug 12 12:23:50 2009
@@ -1,19 +1,19 @@
 ; ModuleID = '<stdin>'
- at b = constant i31 0		; <i31*> [#uses=0]
- at c = constant i31 -2		; <i31*> [#uses=0]
- at d = constant i31 0		; <i31*> [#uses=0]
- at e = constant i31 -1		; <i31*> [#uses=0]
- at f = constant i31 1		; <i31*> [#uses=0]
- at g = constant i31 3		; <i31*> [#uses=0]
- at h = constant i31 undef		; <i31*> [#uses=0]
- at i = constant i31 -1073741824		; <i31*> [#uses=0]
- at j = constant i31 1		; <i31*> [#uses=0]
- at l = constant i31 -1		; <i31*> [#uses=0]
- at n = constant i31 -2		; <i31*> [#uses=0]
- at q = constant i31 0		; <i31*> [#uses=0]
- at r = constant i31 2		; <i31*> [#uses=0]
- at s = constant i31 1		; <i31*> [#uses=0]
- at t = constant i31 0		; <i31*> [#uses=0]
- at o = constant i31 0		; <i31*> [#uses=0]
- at p = constant i31 -1		; <i31*> [#uses=0]
- at u = constant i31 -3		; <i31*> [#uses=0]
+ at b = constant i31 0                               ; <i31*> [#uses=0]
+ at c = constant i31 -2                              ; <i31*> [#uses=0]
+ at d = constant i31 0                               ; <i31*> [#uses=0]
+ at e = constant i31 -1                              ; <i31*> [#uses=0]
+ at f = constant i31 1                               ; <i31*> [#uses=0]
+ at g = constant i31 3                               ; <i31*> [#uses=0]
+ at h = constant i31 undef                           ; <i31*> [#uses=0]
+ at i = constant i31 -1073741824                     ; <i31*> [#uses=0]
+ at j = constant i31 1                               ; <i31*> [#uses=0]
+ at l = constant i31 -1                              ; <i31*> [#uses=0]
+ at n = constant i31 -2                              ; <i31*> [#uses=0]
+ at q = constant i31 0                               ; <i31*> [#uses=0]
+ at r = constant i31 2                               ; <i31*> [#uses=0]
+ at s = constant i31 1                               ; <i31*> [#uses=0]
+ at t = constant i31 0                               ; <i31*> [#uses=0]
+ at o = constant i31 0                               ; <i31*> [#uses=0]
+ at p = constant i31 -1                              ; <i31*> [#uses=0]
+ at u = constant i31 -3                              ; <i31*> [#uses=0]

Modified: llvm/trunk/test/Integer/a33.ll.out
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Integer/a33.ll.out?rev=78816&r1=78815&r2=78816&view=diff

==============================================================================
--- llvm/trunk/test/Integer/a33.ll.out (original)
+++ llvm/trunk/test/Integer/a33.ll.out Wed Aug 12 12:23:50 2009
@@ -1,19 +1,19 @@
 ; ModuleID = '<stdin>'
- at b = constant i33 0		; <i33*> [#uses=0]
- at c = constant i33 -2		; <i33*> [#uses=0]
- at d = constant i33 0		; <i33*> [#uses=0]
- at e = constant i33 -1		; <i33*> [#uses=0]
- at f = constant i33 1		; <i33*> [#uses=0]
- at g = constant i33 3		; <i33*> [#uses=0]
- at h = constant i33 undef		; <i33*> [#uses=0]
- at i = constant i33 -4294967296		; <i33*> [#uses=0]
- at j = constant i33 1		; <i33*> [#uses=0]
- at l = constant i33 -1		; <i33*> [#uses=0]
- at n = constant i33 -2		; <i33*> [#uses=0]
- at q = constant i33 0		; <i33*> [#uses=0]
- at r = constant i33 2		; <i33*> [#uses=0]
- at s = constant i33 1		; <i33*> [#uses=0]
- at t = constant i33 0		; <i33*> [#uses=0]
- at o = constant i33 0		; <i33*> [#uses=0]
- at p = constant i33 -1		; <i33*> [#uses=0]
- at u = constant i33 -1		; <i33*> [#uses=0]
+ at b = constant i33 0                               ; <i33*> [#uses=0]
+ at c = constant i33 -2                              ; <i33*> [#uses=0]
+ at d = constant i33 0                               ; <i33*> [#uses=0]
+ at e = constant i33 -1                              ; <i33*> [#uses=0]
+ at f = constant i33 1                               ; <i33*> [#uses=0]
+ at g = constant i33 3                               ; <i33*> [#uses=0]
+ at h = constant i33 undef                           ; <i33*> [#uses=0]
+ at i = constant i33 -4294967296                     ; <i33*> [#uses=0]
+ at j = constant i33 1                               ; <i33*> [#uses=0]
+ at l = constant i33 -1                              ; <i33*> [#uses=0]
+ at n = constant i33 -2                              ; <i33*> [#uses=0]
+ at q = constant i33 0                               ; <i33*> [#uses=0]
+ at r = constant i33 2                               ; <i33*> [#uses=0]
+ at s = constant i33 1                               ; <i33*> [#uses=0]
+ at t = constant i33 0                               ; <i33*> [#uses=0]
+ at o = constant i33 0                               ; <i33*> [#uses=0]
+ at p = constant i33 -1                              ; <i33*> [#uses=0]
+ at u = constant i33 -1                              ; <i33*> [#uses=0]

Modified: llvm/trunk/test/Integer/a63.ll.out
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Integer/a63.ll.out?rev=78816&r1=78815&r2=78816&view=diff

==============================================================================
--- llvm/trunk/test/Integer/a63.ll.out (original)
+++ llvm/trunk/test/Integer/a63.ll.out Wed Aug 12 12:23:50 2009
@@ -1,19 +1,19 @@
 ; ModuleID = '<stdin>'
- at b = constant i63 0		; <i63*> [#uses=0]
- at c = constant i63 -2		; <i63*> [#uses=0]
- at d = constant i63 0		; <i63*> [#uses=0]
- at e = constant i63 -1		; <i63*> [#uses=0]
- at f = constant i63 1		; <i63*> [#uses=0]
- at g = constant i63 3		; <i63*> [#uses=0]
- at h = constant i63 undef		; <i63*> [#uses=0]
- at i = constant i63 -4611686018427387904		; <i63*> [#uses=0]
- at j = constant i63 1		; <i63*> [#uses=0]
- at l = constant i63 -1		; <i63*> [#uses=0]
- at n = constant i63 -2		; <i63*> [#uses=0]
- at q = constant i63 0		; <i63*> [#uses=0]
- at u = constant i63 -1		; <i63*> [#uses=0]
- at r = constant i63 2		; <i63*> [#uses=0]
- at s = constant i63 1		; <i63*> [#uses=0]
- at t = constant i63 0		; <i63*> [#uses=0]
- at o = constant i63 0		; <i63*> [#uses=0]
- at p = constant i63 -1		; <i63*> [#uses=0]
+ at b = constant i63 0                               ; <i63*> [#uses=0]
+ at c = constant i63 -2                              ; <i63*> [#uses=0]
+ at d = constant i63 0                               ; <i63*> [#uses=0]
+ at e = constant i63 -1                              ; <i63*> [#uses=0]
+ at f = constant i63 1                               ; <i63*> [#uses=0]
+ at g = constant i63 3                               ; <i63*> [#uses=0]
+ at h = constant i63 undef                           ; <i63*> [#uses=0]
+ at i = constant i63 -4611686018427387904            ; <i63*> [#uses=0]
+ at j = constant i63 1                               ; <i63*> [#uses=0]
+ at l = constant i63 -1                              ; <i63*> [#uses=0]
+ at n = constant i63 -2                              ; <i63*> [#uses=0]
+ at q = constant i63 0                               ; <i63*> [#uses=0]
+ at u = constant i63 -1                              ; <i63*> [#uses=0]
+ at r = constant i63 2                               ; <i63*> [#uses=0]
+ at s = constant i63 1                               ; <i63*> [#uses=0]
+ at t = constant i63 0                               ; <i63*> [#uses=0]
+ at o = constant i63 0                               ; <i63*> [#uses=0]
+ at p = constant i63 -1                              ; <i63*> [#uses=0]

Modified: llvm/trunk/test/Integer/a7.ll.out
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Integer/a7.ll.out?rev=78816&r1=78815&r2=78816&view=diff

==============================================================================
--- llvm/trunk/test/Integer/a7.ll.out (original)
+++ llvm/trunk/test/Integer/a7.ll.out Wed Aug 12 12:23:50 2009
@@ -1,24 +1,24 @@
 ; ModuleID = '<stdin>'
- at b = constant i7 0		; <i7*> [#uses=0]
- at q = constant i7 63		; <i7*> [#uses=0]
- at c = constant i7 -2		; <i7*> [#uses=0]
- at d = constant i7 0		; <i7*> [#uses=0]
- at e = constant i7 -1		; <i7*> [#uses=0]
- at f = constant i7 1		; <i7*> [#uses=0]
- at g = constant i7 3		; <i7*> [#uses=0]
- at r = constant i7 5		; <i7*> [#uses=0]
- at s = constant i7 5		; <i7*> [#uses=0]
- at h = constant i7 undef		; <i7*> [#uses=0]
- at i = constant i7 -64		; <i7*> [#uses=0]
- at j = constant i7 1		; <i7*> [#uses=0]
- at l = constant i7 -1		; <i7*> [#uses=0]
- at m2 = constant i7 -1		; <i7*> [#uses=0]
- at n = constant i7 -2		; <i7*> [#uses=0]
- at t = constant i7 -2		; <i7*> [#uses=0]
- at u = constant i7 -64		; <i7*> [#uses=0]
- at v = constant i7 0		; <i7*> [#uses=0]
- at w = constant i7 2		; <i7*> [#uses=0]
- at x = constant i7 1		; <i7*> [#uses=0]
- at y = constant i7 0		; <i7*> [#uses=0]
- at o = constant i7 0		; <i7*> [#uses=0]
- at p = constant i7 -1		; <i7*> [#uses=0]
+ at b = constant i7 0                                ; <i7*> [#uses=0]
+ at q = constant i7 63                               ; <i7*> [#uses=0]
+ at c = constant i7 -2                               ; <i7*> [#uses=0]
+ at d = constant i7 0                                ; <i7*> [#uses=0]
+ at e = constant i7 -1                               ; <i7*> [#uses=0]
+ at f = constant i7 1                                ; <i7*> [#uses=0]
+ at g = constant i7 3                                ; <i7*> [#uses=0]
+ at r = constant i7 5                                ; <i7*> [#uses=0]
+ at s = constant i7 5                                ; <i7*> [#uses=0]
+ at h = constant i7 undef                            ; <i7*> [#uses=0]
+ at i = constant i7 -64                              ; <i7*> [#uses=0]
+ at j = constant i7 1                                ; <i7*> [#uses=0]
+ at l = constant i7 -1                               ; <i7*> [#uses=0]
+ at m2 = constant i7 -1                              ; <i7*> [#uses=0]
+ at n = constant i7 -2                               ; <i7*> [#uses=0]
+ at t = constant i7 -2                               ; <i7*> [#uses=0]
+ at u = constant i7 -64                              ; <i7*> [#uses=0]
+ at v = constant i7 0                                ; <i7*> [#uses=0]
+ at w = constant i7 2                                ; <i7*> [#uses=0]
+ at x = constant i7 1                                ; <i7*> [#uses=0]
+ at y = constant i7 0                                ; <i7*> [#uses=0]
+ at o = constant i7 0                                ; <i7*> [#uses=0]
+ at p = constant i7 -1                               ; <i7*> [#uses=0]

Modified: llvm/trunk/test/Integer/a9.ll.out
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Integer/a9.ll.out?rev=78816&r1=78815&r2=78816&view=diff

==============================================================================
--- llvm/trunk/test/Integer/a9.ll.out (original)
+++ llvm/trunk/test/Integer/a9.ll.out Wed Aug 12 12:23:50 2009
@@ -1,18 +1,18 @@
 ; ModuleID = '<stdin>'
- at b = constant i9 0		; <i9*> [#uses=0]
- at c = constant i9 -2		; <i9*> [#uses=0]
- at d = constant i9 0		; <i9*> [#uses=0]
- at e = constant i9 -1		; <i9*> [#uses=0]
- at f = constant i9 1		; <i9*> [#uses=0]
- at g = constant i9 3		; <i9*> [#uses=0]
- at h = constant i9 undef		; <i9*> [#uses=0]
- at i = constant i9 -256		; <i9*> [#uses=0]
- at j = constant i9 1		; <i9*> [#uses=0]
- at l = constant i9 -1		; <i9*> [#uses=0]
- at n = constant i9 -2		; <i9*> [#uses=0]
- at q = constant i9 0		; <i9*> [#uses=0]
- at r = constant i9 255		; <i9*> [#uses=0]
- at s = constant i9 0		; <i9*> [#uses=0]
- at t = constant i9 1		; <i9*> [#uses=0]
- at o = constant i9 0		; <i9*> [#uses=0]
- at p = constant i9 -1		; <i9*> [#uses=0]
+ at b = constant i9 0                                ; <i9*> [#uses=0]
+ at c = constant i9 -2                               ; <i9*> [#uses=0]
+ at d = constant i9 0                                ; <i9*> [#uses=0]
+ at e = constant i9 -1                               ; <i9*> [#uses=0]
+ at f = constant i9 1                                ; <i9*> [#uses=0]
+ at g = constant i9 3                                ; <i9*> [#uses=0]
+ at h = constant i9 undef                            ; <i9*> [#uses=0]
+ at i = constant i9 -256                             ; <i9*> [#uses=0]
+ at j = constant i9 1                                ; <i9*> [#uses=0]
+ at l = constant i9 -1                               ; <i9*> [#uses=0]
+ at n = constant i9 -2                               ; <i9*> [#uses=0]
+ at q = constant i9 0                                ; <i9*> [#uses=0]
+ at r = constant i9 255                              ; <i9*> [#uses=0]
+ at s = constant i9 0                                ; <i9*> [#uses=0]
+ at t = constant i9 1                                ; <i9*> [#uses=0]
+ at o = constant i9 0                                ; <i9*> [#uses=0]
+ at p = constant i9 -1                               ; <i9*> [#uses=0]

Modified: llvm/trunk/test/Transforms/InstCombine/urem-simplify-bug.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/urem-simplify-bug.ll?rev=78816&r1=78815&r2=78816&view=diff

==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/urem-simplify-bug.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/urem-simplify-bug.ll Wed Aug 12 12:23:50 2009
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep {= or i32 %x, -5	}
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep {= or i32 %x, -5 }
 
 @.str = internal constant [5 x i8] c"foo\0A\00"		; <[5 x i8]*> [#uses=1]
 @.str1 = internal constant [5 x i8] c"bar\0A\00"		; <[5 x i8]*> [#uses=1]





More information about the llvm-commits mailing list