From: Chris Lattner Date: Tue, 14 Nov 2006 08:08:46 +0000 (+0000) Subject: it would be nice of ctlz were lowered to bsf etc. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=20ddd4a7ae3798fa65a2bc6e7258e3d4500ecbe9;p=oota-llvm.git it would be nice of ctlz were lowered to bsf etc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31730 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/README.txt b/lib/Target/X86/README.txt index 834a47c51b9..629d30336bc 100644 --- a/lib/Target/X86/README.txt +++ b/lib/Target/X86/README.txt @@ -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