[llvm] [ValueTracking] Propagate sign information out of loop (PR #175590)
Kshitij Paranjape via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 31 01:53:29 PST 2026
================
@@ -5954,6 +5954,37 @@ void computeKnownFPClass(const Value *V, const APInt &DemandedElts,
}
}
+ // Look for the case of a for loop which has a positive
+ // initial value and is incremented by a squared value.
+ // This will propagate sign information out of such loops.
+ if (P->getNumIncomingValues() == 2) {
+ Value *RecurValue = P->getIncomingValue(1);
----------------
kshitijvp wrote:
Done
https://github.com/llvm/llvm-project/pull/175590
More information about the llvm-commits
mailing list