|author||Jan Beulich <firstname.lastname@example.org>||Thu Jun 10 12:39:08 2021 +0200|
|committer||Jan Beulich <email@example.com>||Thu Jun 10 12:39:08 2021 +0200|
x86: suppress LEA optimization in a specific 16-bit case In 16-bit mode a 16-bit address size LEA with a 16-bit displacement and a 32-bit destination is shorter to encode than the corresponding MOV. Commit fe134c656991 ("x86: optimize LEA")'s promise was to only do the transformation when the encoding size wouldn't grow, i.e. it did go a little too far. Restrict this specific case of the transformation to -O2.