Comment 2 for bug 1620025

Revision history for this message
Dan Lewis (danielwlewis) wrote :

Here's why I'd like to see this bug fixed: The code below computes a quadratic. Using condition code AL in the IT block reduces the number of instruction bytes by almost 40%.

// 16 instruction bytes
MUL R1,R1,R0 // ax
ADD R1,R1,R2 // ax+b
MUL R0,R0,R1 // (ax+b)x
ADD R0,R0,R3 // (ax+b)x+c

// 10 bytes
ITTTT AL
MULAL R1,R1,R0
ADDAL R1,R1,R2
MULAL R0,R0,R1
ADDAL R0,R0,R3

Thanks!
Dan