Commit 31f3d128 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

sparc: Remove unnecessary checks for 'memory' clobber.

This is handled earlier and there are no memory clobbers anymore in gen_ASM().
parent f9aa8180
......@@ -296,8 +296,6 @@ static ir_node *gen_ASM(ir_node *node)
for (size_t c = 0; c < get_ASM_n_clobbers(node); ++c) {
const char *const clobber = get_id_str(clobbers[c]);
if (strcmp(clobber, "memory") == 0)
continue;
if (strcmp(clobber, "cc") == 0) {
continue;
}
......@@ -379,8 +377,6 @@ static ir_node *gen_ASM(ir_node *node)
/* parse clobbers */
for (size_t c = 0; c < get_ASM_n_clobbers(node); ++c) {
const char *const clobber = get_id_str(clobbers[c]);
if (strcmp(clobber, "memory") == 0)
continue;
if (strcmp(clobber, "cc") == 0) {
ARR_APP1(arch_register_req_t const*, out_reqs, sparc_registers[REG_PSR].single_req);
ARR_APP1(arch_register_req_t const*, out_reqs, sparc_registers[REG_FSR].single_req);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment