Skip to content
Snippets Groups Projects
Commit f844f745 authored by Philippe Mathieu-Daudé's avatar Philippe Mathieu-Daudé Committed by Taylor Simpson
Browse files

target/hexagon: Remove unused TCG temporary from predicated loads


The gen_pred_cancel() function, introduced in commit a646e99c
(Hexagon macros) doesn't use the 'one' TCG temporary; remove it.

Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
Reviewed-by: default avatarTaylor Simpson <tsimpson@quicinc.com>
Signed-off-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20211003004750.3608983-2-f4bug@amsat.org>
parent c23b5764
No related branches found
No related tags found
No related merge requests found
......@@ -190,7 +190,6 @@ static inline void gen_pred_cancel(TCGv pred, int slot_num)
TCGv slot_mask = tcg_const_tl(1 << slot_num);
TCGv tmp = tcg_temp_new();
TCGv zero = tcg_const_tl(0);
TCGv one = tcg_const_tl(1);
tcg_gen_or_tl(slot_mask, hex_slot_cancelled, slot_mask);
tcg_gen_andi_tl(tmp, pred, 1);
tcg_gen_movcond_tl(TCG_COND_EQ, hex_slot_cancelled, tmp, zero,
......@@ -198,7 +197,6 @@ static inline void gen_pred_cancel(TCGv pred, int slot_num)
tcg_temp_free(slot_mask);
tcg_temp_free(tmp);
tcg_temp_free(zero);
tcg_temp_free(one);
}
#define PRED_LOAD_CANCEL(PRED, EA) \
gen_pred_cancel(PRED, insn->is_endloop ? 4 : insn->slot)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment