[PATCH] Remove another gimple_assign_rhs_to_tree call
Richard Biener
rguenther@suse.de
Fri May 17 08:15:00 GMT 2019
Stupid one. We shouldn't have made it available...
Bootstrapped/tested on x86_64-unknown-linux-gnu.
Richard.
2019-05-17 Richard Biener <rguenther@suse.de>
* ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
Index: gcc/ccmp.c
===================================================================
--- gcc/ccmp.c (revision 271293)
+++ gcc/ccmp.c (working copy)
@@ -187,12 +187,11 @@ expand_ccmp_next (tree op, tree_code cod
static rtx
expand_ccmp_expr_1 (gimple *g, rtx_insn **prep_seq, rtx_insn **gen_seq)
{
- tree exp = gimple_assign_rhs_to_tree (g);
- tree_code code = TREE_CODE (exp);
+ tree_code code = gimple_assign_rhs_code (g);
basic_block bb = gimple_bb (g);
- tree op0 = TREE_OPERAND (exp, 0);
- tree op1 = TREE_OPERAND (exp, 1);
+ tree op0 = gimple_assign_rhs1 (g);
+ tree op1 = gimple_assign_rhs2 (g);
gimple *gs0 = get_gimple_for_ssa_name (op0);
gimple *gs1 = get_gimple_for_ssa_name (op1);
rtx tmp;
More information about the Gcc-patches
mailing list