Rafael Espindola 9cfd72a3d1 add a note
llvm-svn: 30581
2006-09-22 11:36:17 +00:00
..
2006-05-27 01:23:30 +00:00
2006-08-25 17:55:16 +00:00
2006-09-21 13:06:26 +00:00
2006-09-19 16:41:40 +00:00
2006-05-14 22:18:28 +00:00
2006-09-22 11:36:17 +00:00

//===---------------------------------------------------------------------===//
// Random ideas for the ARM backend.
//===---------------------------------------------------------------------===//

Consider implementing a select with two conditional moves:

cmp x, y
moveq dst, a
movne dst, b

----------------------------------------------------------


%tmp1 = shl int %b, ubyte %c
%tmp4 = add int %a, %tmp1

compiles to

add r0, r0, r1, lsl r2

but

%tmp1 = shl int %b, ubyte %c
%tmp4 = add int %tmp1, %a

compiles to
mov r1, r1, lsl r2
add r0, r1, r0

----------------------------------------------------------