diff options
author | Nate Begeman <natebegeman@mac.com> | 2006-01-31 08:17:29 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2006-01-31 08:17:29 +0000 |
commit | a162f208ee05751ec9b3931f09f207cc0f6511a1 (patch) | |
tree | ab4b6dbc9f9771c517e83965f3e5e02f49c9fc86 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | ac9892ccaf08ba1f7802db60ac732166e0a77856 (diff) | |
download | llvm-a162f208ee05751ec9b3931f09f207cc0f6511a1.zip llvm-a162f208ee05751ec9b3931f09f207cc0f6511a1.tar.gz llvm-a162f208ee05751ec9b3931f09f207cc0f6511a1.tar.bz2 |
Codegen
bool %test(int %X) {
%Y = seteq int %X, 13
ret bool %Y
}
as
_test:
addi r2, r3, -13
cntlzw r2, r2
srwi r3, r2, 5
blr
rather than
_test:
cmpwi cr7, r3, 13
mfcr r2
rlwinm r3, r2, 31, 31, 31
blr
This has very little effect on most code, but speeds up analyzer 23% and
mason 11%
llvm-svn: 25848
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions