diff --git a/llvm/lib/Target/README.txt b/llvm/lib/Target/README.txt index 86c231bf3196..1f982b7f76a6 100644 --- a/llvm/lib/Target/README.txt +++ b/llvm/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?