[llvm-commits] CVS: llvm/lib/Target/X86/README.txt

Chris Lattner sabre at nondot.org
Tue Nov 14 00:09:09 PST 2006



Changes in directory llvm/lib/Target/X86:

README.txt updated: 1.144 -> 1.145
---
Log message:

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


---
Diffs of the changes:  (+9 -0)

 README.txt |    9 +++++++++
 1 files changed, 9 insertions(+)


Index: llvm/lib/Target/X86/README.txt
diff -u llvm/lib/Target/X86/README.txt:1.144 llvm/lib/Target/X86/README.txt:1.145
--- llvm/lib/Target/X86/README.txt:1.144	Fri Nov 10 16:03:35 2006
+++ llvm/lib/Target/X86/README.txt	Tue Nov 14 02:08:46 2006
@@ -114,6 +114,15 @@
 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 






More information about the llvm-commits mailing list