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 | 7b0902dcf8352ef93e35cc9cf264dbe4d2a198de (patch) | |
tree | eb7d479172c61335328f7fea539acc4c6de99357 /docs/CommandGuide/man | |
parent | 4b4863188fe226c00d961ec611f2eb1ee8aac4c0 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24774 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/CommandGuide/man')
0 files changed, 0 insertions, 0 deletions