| commit | 8f0212acb19da47fa9d9feeaae42e71c8817cafc | [log] [tgz] |
|---|---|---|
| author | Jan Beulich <jbeulich@suse.com> | Mon Oct 31 17:56:06 2022 +0100 |
| committer | Jan Beulich <jbeulich@suse.com> | Mon Oct 31 17:56:06 2022 +0100 |
| tree | e87ebfd50f0099aaa587de359f3effba3f50f96d | |
| parent | 5bab16fdf1775c8abd16376458c5843fbe1d4314 [diff] |
x86: minor improvements to optimize_imm() (part III) Earlier tidying still missed an opportunity: There's no need for the "anyimm" static variable. Instead of using it in the loop to mask "allowed" (which is necessary to satisfy operand_type_or()'s assertions) simply use "mask", requiring it to be calculated first. That way the post-loop masking by "mask" ahead of the operand_type_all_zero() can be dropped.