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

Davide Italiano via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 15 15:59:29 PST 2016


davide added inline comments.


================
Comment at: lib/Transforms/Utils/SimplifyLibCalls.cpp:1558
+                                   ArgType->getIntegerBitWidth()), V);
+  return B.CreateIntCast(V, B.getInt32Ty(), false);
+}
----------------
majnemer wrote:
> Can't we replace `B.getInt32Ty` with `CI->getType()`?
Done before committing. Thanks for your comment!


Repository:
  rL LLVM

https://reviews.llvm.org/D14590





More information about the llvm-commits mailing list