diff options
author | Chris Lattner <sabre@nondot.org> | 2006-01-31 05:05:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-01-31 05:05:52 +0000 |
commit | 86638b94c113fdf98459bf862fd85e121fe77c7d (patch) | |
tree | e3eae2c885f329dd3692b4ebe48b03e022132daf /lib/CodeGen/MachineFunction.cpp | |
parent | 19c5c4cca9edd0e1e2961879d3da164325af6d63 (diff) |
Compile this:
void %X(int %A) {
%C = setlt int %A, 123 ; <bool> [#uses=1]
br bool %C, label %T, label %F
T: ; preds = %0
call int %main( int 0 ) ; <int>:0 [#uses=0]
ret void
F: ; preds = %0
ret void
}
to this:
X:
save -96, %o6, %o6
subcc %i0, 122, %l0
bg .LBBX_2 ! F
nop
...
not this:
X:
save -96, %o6, %o6
sethi 0, %l0
or %g0, 1, %l1
subcc %i0, 122, %l2
bg .LBBX_4 !
nop
.LBBX_3: !
or %g0, %l0, %l1
.LBBX_4: !
subcc %l1, 0, %l0
bne .LBBX_2 ! F
nop
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25833 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions