aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2021-08-26 07:06:39 -0700
committerRichard Henderson <richard.henderson@linaro.org>2021-10-27 17:11:23 -0700
commit7a2f70845255bd6a2ad6399d159c58a7e7b64b51 (patch)
treefcd6f50f946763e5d87ea8206d270b9782641186 /contrib
parent9531c078ff63783f2a21ba302827123e7b073304 (diff)
tcg/optimize: Sink commutative operand swapping into fold functions
Most of these are handled by creating a fold_const2_commutative to handle all of the binary operators. The rest were already handled on a case-by-case basis in the switch, and have their own fold function in which to place the call. We now have only one major switch on TCGOpcode. Introduce NO_DEST and a block comment for swap_commutative in order to make the handling of brcond and movcond opcodes cleaner. Reviewed-by: Luis Pires <luis.pires@eldorado.org.br> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions