mirror of
https://github.com/danog/ir.git
synced 2024-12-02 09:38:29 +01:00
Fixed incorrect SCCP for SWITCH
This commit is contained in:
parent
07b41c8d37
commit
71ab68fa39
@ -741,7 +741,11 @@ int ir_sccp(ir_ctx *ctx)
|
|||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (!IR_IS_BOTTOM(insn->op2)) {
|
if (!IR_IS_BOTTOM(insn->op2)
|
||||||
|
#if IR_COMBO_COPY_PROPAGATION
|
||||||
|
&& (IR_IS_CONST_REF(insn->op2) || _values[insn->op2].op != IR_COPY)
|
||||||
|
#endif
|
||||||
|
) {
|
||||||
ir_ref use_case = IR_UNUSED;
|
ir_ref use_case = IR_UNUSED;
|
||||||
|
|
||||||
use_list = &ctx->use_lists[i];
|
use_list = &ctx->use_lists[i];
|
||||||
|
Loading…
Reference in New Issue
Block a user