aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-09-15 20:31:36 +0000
committerChris Lattner <sabre@nondot.org>2006-09-15 20:31:36 +0000
commitcbce2f6c1b5b63b16b856f80e6fc026764b4eab4 (patch)
tree5733ca45b81ed1d5b8642b6bb147b9dcf3f5ba47
parent42fe4957a9e862b92a7759a7a10c470ff9fe5bdb (diff)
add a nate note
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30399 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/README.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/README.txt b/lib/Target/README.txt
index 86c231bf31..1f982b7f76 100644
--- a/lib/Target/README.txt
+++ b/lib/Target/README.txt
@@ -240,4 +240,10 @@ _bar: addic r3,r3,-1
subfe r3,r3,r3
blr
+//===---------------------------------------------------------------------===//
+
+Legalize should lower ctlz like this:
+ ctlz(x) = popcnt((x-1) & ~x)
+
+on targets that have popcnt but not ctlz. itanium, what else?