ir_print_visitor: Remove unnecessary parens around expression operands.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 12 Apr 2010 21:52:37 +0000 (14:52 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 28 Apr 2010 22:34:52 +0000 (15:34 -0700)
ir_print_visitor.cpp

index 9a8eaf599da1bd9aa3c99c8640248abf0e0e52e4..faeb784e922a4ccec105ece4250f418677c5dbfe 100644 (file)
@@ -155,15 +155,12 @@ void ir_print_visitor::visit(ir_expression *ir)
 
    printf(" %s ", operators[ir->operation]);
 
-   printf("(");
    if (ir->operands[0])
       ir->operands[0]->accept(this);
-   printf(") ");
 
-   printf("(");
    if (ir->operands[1])
       ir->operands[1]->accept(this);
-   printf(")) ");
+   printf(") ");
 }