arm: vp9lpf: Use orrs instead of orr+cmp
authorMartin Storsjö <martin@martin.st>
Fri, 13 Jan 2017 21:42:28 +0000 (23:42 +0200)
committerMartin Storsjö <martin@martin.st>
Fri, 10 Feb 2017 22:44:04 +0000 (00:44 +0200)
Signed-off-by: Martin Storsjö <martin@martin.st>
libavcodec/arm/vp9lpf_neon.S

index c57c0e9..c2f1c95 100644 (file)
@@ -78,8 +78,7 @@
 
         vdup.u8         d3,  r3          @ H
         vmov            r2,  r3,  d4
-        orr             r2,  r2,  r3
-        cmp             r2,  #0
+        orrs            r2,  r2,  r3
         @ If no pixels need filtering, just exit as soon as possible
         beq             9f
 
 
 .if \wd >= 8
         vmov            r2,  r3,  d6
-        orr             r2,  r2,  r3
-        cmp             r2,  #0
+        orrs            r2,  r2,  r3
         @ If no pixels need flat8in, jump to flat8out
         @ (or to a writeout of the inner 4 pixels, for wd=8)
         beq             6f
 6:
         vorr            d2,  d6,  d7
         vmov            r2,  r3,  d2
-        orr             r2,  r2,  r3
-        cmp             r2,  #0
+        orrs            r2,  r2,  r3
         @ If no pixels needed flat8in nor flat8out, jump to a
         @ writeout of the inner 4 pixels
         beq             7f
         vmov            r2,  r3,  d7
-        orr             r2,  r2,  r3
-        cmp             r2,  #0
+        orrs            r2,  r2,  r3
         @ If no pixels need flat8out, jump to a writeout of the inner 6 pixels
         beq             8f