diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2021-08-26 07:06:39 -0700 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2021-10-27 17:11:23 -0700 |
| commit | 7a2f70845255bd6a2ad6399d159c58a7e7b64b51 (patch) | |
| tree | fcd6f50f946763e5d87ea8206d270b9782641186 /tcg/tcg.c | |
| parent | 9531c078ff63783f2a21ba302827123e7b073304 (diff) | |
| download | focaccia-qemu-7a2f70845255bd6a2ad6399d159c58a7e7b64b51.tar.gz focaccia-qemu-7a2f70845255bd6a2ad6399d159c58a7e7b64b51.zip | |
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 'tcg/tcg.c')
0 files changed, 0 insertions, 0 deletions