diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-12-17 08:26:38 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-12-17 08:26:38 +0000 |
| commit | 866cef563b70f309839b15bcbe2cb2b7653d2fbc (patch) | |
| tree | bc74b9ae581822b89a129fdb01d93db651e4bd4c /llvm/lib/Target/TargetData.cpp | |
| parent | 80a3875bc189bb3713b39ab043f8b1a66967af0a (diff) | |
| download | bcm5719-llvm-866cef563b70f309839b15bcbe2cb2b7653d2fbc.tar.gz bcm5719-llvm-866cef563b70f309839b15bcbe2cb2b7653d2fbc.zip | |
Add some simple integer patterns. This allows us to compile this:
int %test(int %A) {
%B = add int %A, 1
%C = xor int %B, 123
ret int %C
}
into this:
test:
save -96, %sp, %sp
add %i0, 1, %l0
xor %l0, 123, %i0
restore %g0, %g0, %g0
retl
nop
for example. I guess it would make sense to add reg/reg versions too.
llvm-svn: 24774
Diffstat (limited to 'llvm/lib/Target/TargetData.cpp')
0 files changed, 0 insertions, 0 deletions

