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

David Majnemer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 15 15:31:55 PST 2016


majnemer added inline comments.


================
Comment at: lib/Transforms/Utils/SimplifyLibCalls.cpp:1558
+                                   ArgType->getIntegerBitWidth()), V);
+  return B.CreateIntCast(V, B.getInt32Ty(), false);
+}
----------------
Can't we replace `B.getInt32Ty` with `CI->getType()`?


https://reviews.llvm.org/D14590





More information about the llvm-commits mailing list