[Intel-gfx] [PATCH 0/3] Claw back optimised IS_PLATFORM checks
Tvrtko Ursulin
tursulin at ursulin.net
Wed Sep 20 09:26:58 UTC 2017
From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
Some time ago we stopped letting the compiler merge code like IS_SKYLAKE ||
IS_KABYLAKE || IS_... into a single conditional in all cases. This series
quickly restores that for a nice overall saving and hopefully with a bearable
impact on the code base.
text data bss dec hex filename
-1460454 60014 3656 1524124 17419c drivers/gpu/drm/i915/i915.ko
+1459260 60026 3656 1522942 173cfe drivers/gpu/drm/i915/i915.ko
Tvrtko Ursulin (3):
drm/i915: Add IS_PLATFORM macro
drm/i915: Compact device info access by a small re-ordering
drm/i915: Allow optimized platform checks
drivers/gpu/drm/i915/i915_drv.c | 6 ++++
drivers/gpu/drm/i915/i915_drv.h | 73 +++++++++++++++++++++++------------------
2 files changed, 47 insertions(+), 32 deletions(-)
--
2.9.5
More information about the Intel-gfx
mailing list