1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00

it would be nice of ctlz were lowered to bsf etc.

llvm-svn: 31730
This commit is contained in:
Chris Lattner 2006-11-14 08:08:46 +00:00
parent 0114b0c20e
commit da103686a6

View File

@ -114,6 +114,15 @@ ctz:
however, check that these are defined for 0 and 32. Our intrinsics are, GCC's
aren't.
Another example (use predsimplify to eliminate a select):
int foo (unsigned long j) {
if (j)
return __builtin_ffs (j) - 1;
else
return 0;
}
//===---------------------------------------------------------------------===//
Use push/pop instructions in prolog/epilog sequences instead of stores off