[all-commits] [llvm/llvm-project] b27af8: [IndVarSimplify] Refactor `handleFloatingPointIV`, ...
Antonio Frighetto via All-commits
all-commits at lists.llvm.org
Fri Nov 28 00:48:36 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b27af83120b32a4b8312ddf1e6317271122769e4
https://github.com/llvm/llvm-project/commit/b27af83120b32a4b8312ddf1e6317271122769e4
Author: Antonio Frighetto <me at antoniofrighetto.com>
Date: 2025-11-28 (Fri, 28 Nov 2025)
Changed paths:
M llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
Log Message:
-----------
[IndVarSimplify] Refactor `handleFloatingPointIV`, modernize pass (NFC)
`handleFloatingPointIV` is now abstracted out into different routines,
particularly:
- `maybeFloatingPointRecurrence` which establishes whether we handle a
floating-point iv recurrence;
- `tryConvertToIntegerIV` which attempts to convert the fp start, step
and exit values into integer ones;
- `canonicalizeToIntegerIV` which rewrites the recurrence.
Minor opportunity to modernize the code where possible.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list