diff mbox series

Remove another gimple_assign_rhs_to_tree call

Message ID alpine.LSU.2.20.1905171014160.10704@zhemvz.fhfr.qr
State New
Headers show
Series Remove another gimple_assign_rhs_to_tree call | expand

Commit Message

Richard Biener May 17, 2019, 8:14 a.m. UTC
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.
diff mbox series

Patch

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;