summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2015-10-28 18:32:07 +0000
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2015-10-28 18:32:07 +0000
commit5f05c4a337b8d1c4630daa2ef5c1333c7a9f6042 (patch)
treed4f78b8af7389c21c2f382a0b98a6804ace0a1a0
parentdd0b0596f1d67021f13542cfdb4cd03b29ad8c07 (diff)
downloadgcc-5f05c4a337b8d1c4630daa2ef5c1333c7a9f6042.tar.gz
* config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
(struct parallel): Update comment. (nvptx_reorg): Likewise. (nvptx_neuter): Cleanup whitespace. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229498 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/nvptx/nvptx.c23
2 files changed, 11 insertions, 19 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5272d523340..707ae2dc73f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
+
+ * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
+ (struct parallel): Update comment.
+ (nvptx_reorg): Likewise.
+ (nvptx_neuter): Cleanup whitespace.
+
2015-10-28 Richard Henderson <rth@redhat.com>
* tree-eh.c (mark_reachable_handlers): Fix typo in assert.
diff --git a/gcc/config/nvptx/nvptx.c b/gcc/config/nvptx/nvptx.c
index d2f4dbfba2a..b541666d147 100644
--- a/gcc/config/nvptx/nvptx.c
+++ b/gcc/config/nvptx/nvptx.c
@@ -1969,7 +1969,6 @@ nvptx_print_operand_address (FILE *file, rtx addr)
A -- print an address space identifier for a MEM
c -- print an opcode suffix for a comparison operator, including a type code
- d -- print a CONST_INT as a vector dimension (x, y, or z)
f -- print a full reg even for something that must always be split
S -- print a shuffle kind specified by CONST_INT
t -- print a type opcode suffix, promoting QImode to 32 bits
@@ -2013,18 +2012,6 @@ nvptx_print_operand (FILE *file, rtx x, int code)
}
break;
- case 'd':
- gcc_assert (x_code == CONST_INT);
- if (INTVAL (x) == 0)
- fputs (".x", file);
- else if (INTVAL (x) == 1)
- fputs (".y", file);
- else if (INTVAL (x) == 2)
- fputs (".z", file);
- else
- gcc_unreachable ();
- break;
-
case 't':
op_mode = nvptx_underlying_object_mode (x);
fprintf (file, "%s", nvptx_ptx_type_from_mode (op_mode, true));
@@ -2294,9 +2281,8 @@ nvptx_reorg_subreg (void)
}
}
-/* Loop structure of the function. The entire function is described as
- a NULL loop. We should be able to extend this to represent
- superblocks. */
+/* Loop structure of the function. The entire function is described as
+ a NULL loop. */
struct parallel
{
@@ -3028,7 +3014,6 @@ nvptx_neuter_pars (parallel *par, unsigned modes, unsigned outer)
}
/* PTX-specific reorganization
- - Scan and release reduction buffers
- Split blocks at fork and join instructions
- Compute live registers
- Mark now-unused registers, so function begin doesn't declare
@@ -3214,11 +3199,11 @@ nvptx_record_offload_symbol (tree decl)
fprintf (asm_out_file, ", %#x", size);
}
-
+
fprintf (asm_out_file, "\n");
}
break;
-
+
default:
gcc_unreachable ();
}