]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commitdiff
tcg/optimize: Don't special case TCG_OPF_CALL_CLOBBER
authorRichard Henderson <rth@twiddle.net>
Mon, 9 Jun 2014 01:24:14 +0000 (18:24 -0700)
committerRichard Henderson <rth@twiddle.net>
Wed, 18 Jun 2014 18:39:02 +0000 (11:39 -0700)
With the "old" ldst ops we didn't know the real width of the
result of the load, but with the "new" ldst ops we do.

Signed-off-by: Richard Henderson <rth@twiddle.net>
tcg/optimize.c

index 16cebbe16d8da1078c91a5fa28d88eb545597bca..34ae3c285752401b7de8633c6c2ba1fa400d3015 100644 (file)
@@ -911,12 +911,11 @@ static TCGArg *tcg_constant_folding(TCGContext *s, uint16_t *tcg_opc_ptr,
             break;
         }
 
-        /* 32-bit ops (non 64-bit ops and non load/store ops) generate
-           32-bit results.  For the result is zero test below, we can
-           ignore high bits, but for further optimizations we need to
-           record that the high bits contain garbage.  */
+        /* 32-bit ops generate 32-bit results.  For the result is zero test
+           below, we can ignore high bits, but for further optimizations we
+           need to record that the high bits contain garbage.  */
         partmask = mask;
-        if (!(def->flags & (TCG_OPF_CALL_CLOBBER | TCG_OPF_64BIT))) {
+        if (!(def->flags & TCG_OPF_64BIT)) {
             mask |= ~(tcg_target_ulong)0xffffffffu;
             partmask &= 0xffffffffu;
             affected &= 0xffffffffu;