[PATCH] D14590: [SimplifyLibCalls] Constant folding for fls, flsl, flsll

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 15 15:27:06 PST 2016

efriedma accepted this revision.
efriedma added a comment.
This revision is now accepted and ready to land.

LGTM with typo fixed.

Comment at: lib/Transforms/Utils/SimplifyLibCalls.cpp:1550
+  // ffs(x) -> (i32)(sizeInBits(x) - llvm.ctlz(x, false))
+  Type *ArgType = Op->getType();
Typo: fls, not ffs.


More information about the llvm-commits mailing list