This change may double the performance of certain functions relying on floating point division in the loops. Certain examples and discussion are listed in the mentioned bugreport.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
A comment on the variable names; otherwise I think this looks good. Thanks!
lib/Transforms/Scalar/LICM.cpp | ||
---|---|---|
445 ↗ | (On Diff #91314) | I find naming this Reciproal to be a bit confusing (because I'd expect a 1/something to be named Reciprocal). You might even name InvDivisor ReciprocalDivisor (or just RecipDivisor). The result of the multiplication could be named Product or Division or something along those lines. |
Comment Actions
Formatting nit, otherwise LGTM.
lib/Transforms/Scalar/LICM.cpp | ||
---|---|---|
445 ↗ | (On Diff #93033) | This line is too long (max is 80 characters). |