随笔-处理器微架构-F: micro fusion、macro fusion、instructionFusion

F: 关于instructionFusion、micro fusion、macro fusion

参考:Microbenchmarking fused instruction

Please do not be confused about the difference between InstructionFusion, MicroFusion and MacroFusion. According Intel documentation:

  • InstructionFusion is when multiple RISC-like assembly instructions are merged into CISC-like one assembly instruction (see example above). This is made by the compiler / asm developer.
  • MicroFusion is when multiple uops from the same assembly instruction are merged into one uop. This is made by the decoding pipeline inside CPU.
  • MacroFusion is when multiple uops from different assembly instructions are merged into one uop. This is made by the decoding pipeline inside CPU.

请不要混淆 InstructionFusion、MicroFusion 和 MacroFusion 之间的区别。根据 Intel 文档:

  • InstructionFusion 是指将多个类似 RISC 的汇编指令合并为一个类似 CISC 的汇编指令(参见上面的示例)。这是由编译器/ asm开发人员完成的。
  • MicroFusion 是指将来自同一组装指令的多个 uop 合并为一个 uop。这是由 CPU 内部的解码管道完成的。
  • MacroFusion 是指将来自不同汇编指令的多个 uop 合并为一个 uop。这是由 CPU 内部的解码管道完成的。
posted @ 2025-01-09 22:28  LiYanbin  阅读(36)  评论(0)    收藏  举报