Files
clang-p2996/llvm/test/CodeGen/X86
Simon Pilgrim e2d74a25eb [X86] EmitCmp - always use cmpw with foldable loads (#92251)
By default, EmitCmp avoids cmpw with i16 immediates due to 66/67h length-changing prefixes causing stalls, instead extending the value to i32 and using a cmpl with a i32 immediate, unless it has the TuningFastImm16 flag or we're building for optsize/minsize.

However, if we're loading the value for comparison, the performance costs of the decode stalls are likely to be exceeded by the impact of the load latency of the folded load, the shorter encoding and not needing an extra register to store the ext-load.

This matches the behaviour of gcc and msvc.

Fixes #90355
2024-05-15 17:46:49 +01:00
..
2024-04-29 09:01:57 +08:00
2024-05-15 13:10:16 +01:00