Skip to content

Commit f844f74

Browse files
philmdtaylorsimpson
authored andcommitted
target/hexagon: Remove unused TCG temporary from predicated loads
The gen_pred_cancel() function, introduced in commit a646e99 (Hexagon macros) doesn't use the 'one' TCG temporary; remove it. Reviewed-by: Richard Henderson <[email protected]> Reviewed-by: Taylor Simpson <[email protected]> Signed-off-by: Philippe Mathieu-Daudé <[email protected]> Message-Id: <[email protected]>
1 parent c23b576 commit f844f74

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

target/hexagon/macros.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,15 +190,13 @@ static inline void gen_pred_cancel(TCGv pred, int slot_num)
190190
TCGv slot_mask = tcg_const_tl(1 << slot_num);
191191
TCGv tmp = tcg_temp_new();
192192
TCGv zero = tcg_const_tl(0);
193-
TCGv one = tcg_const_tl(1);
194193
tcg_gen_or_tl(slot_mask, hex_slot_cancelled, slot_mask);
195194
tcg_gen_andi_tl(tmp, pred, 1);
196195
tcg_gen_movcond_tl(TCG_COND_EQ, hex_slot_cancelled, tmp, zero,
197196
slot_mask, hex_slot_cancelled);
198197
tcg_temp_free(slot_mask);
199198
tcg_temp_free(tmp);
200199
tcg_temp_free(zero);
201-
tcg_temp_free(one);
202200
}
203201
#define PRED_LOAD_CANCEL(PRED, EA) \
204202
gen_pred_cancel(PRED, insn->is_endloop ? 4 : insn->slot)

0 commit comments

Comments
 (0)