[all-commits] [llvm/llvm-project] c16559: [IndVars] Avoid unnecessary truncate for zext nneg...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Fri Dec 22 02:33:37 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c16559137cd1ad08ef5934558829d2ff5d227d70
https://github.com/llvm/llvm-project/commit/c16559137cd1ad08ef5934558829d2ff5d227d70
Author: Nikita Popov <npopov at redhat.com>
Date: 2023-12-22 (Fri, 22 Dec 2023)
Changed paths:
M llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
M llvm/test/Transforms/IndVarSimplify/widen-nonnegative.ll
Log Message:
-----------
[IndVars] Avoid unnecessary truncate for zext nneg use
When performing sext IV widening, if one of the narrow uses is in
a zext nneg, we can treat it like an sext and avoid the insertion
of a trunc.
More information about the All-commits
mailing list