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
Event Timeline
Comment Actions
A comment on the variable names; otherwise I think this looks good. Thanks!
lib/Transforms/Scalar/LICM.cpp | ||
---|---|---|
445 | 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 | This line is too long (max is 80 characters). |
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.