[PATCH] D48763: [SimplifyIndVar] Canonicalize comparisons to unsigned while eliminating truncs
David Greene via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 29 09:23:58 PDT 2018
greened added inline comments.
================
Comment at: lib/Transforms/Utils/SimplifyIndVar.cpp:563
+ };
+ auto CanUseZExt = [&](ICmpInst *ICI) {
+ // Unsigned comparison can be widened as unsigned.
----------------
Does this need to be a lambda? Seems unnecessarily complicated.
https://reviews.llvm.org/D48763
More information about the llvm-commits
mailing list