[U-Boot] [U-Boot,1/2] efi_loader: Optimize GOP switch

Alexander Graf agraf at suse.de
Wed Apr 4 09:51:36 UTC 2018


> We usually try to compile for size, not for speed. Unfortunately with the
> more powerful GOP infrastructure to handle all sorts of GOP operations, we
> end up slowing down our copying hot path quite a lot.
> 
> So this patch moves the 4 possible GOP operation modes into separate
> functions which call a common function again. The end result of that is
> more optimized code that can properly do constant propagation throughout
> its switch() statements and thus removes compares in the hot path.
> 
> Signed-off-by: Alexander Graf <agraf at suse.de>

Thanks, applied to efi-next

Alex



More information about the U-Boot mailing list