Fix tracking and use of cache sizes
Submitted by Benoit Jacob
Assigned to Nobody
Link to original bugzilla bug (#931)
Description
Two parts here:
-
refactor how we track cache sizes with static-storage variables, to make it cleaner and more future-proof. See Patch 1 and 1.1 below. This also makes it easy to provide one's own description of the cache levels, as can be obtained by the new function added in bug #930.
-
Fix computeProductBlockingSizes to: a) actually take cache sizes into account, and b) to avoid applying on ARM an optimization (limiting blocking sizes) that seems to be only beneficial on x86/x86-64 and is actually harmful on ARM.
Blocking
Edited by Eigen Bugzilla