[all-commits] [llvm/llvm-project] 6178dd: [X86] Add a test to reveal a bug in CMOV conversion.

Tianqing Wang via All-commits all-commits at lists.llvm.org
Tue Jun 29 01:37:59 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6178ddcd2b70e6a187e1960f00f5985c390a80a0
      https://github.com/llvm/llvm-project/commit/6178ddcd2b70e6a187e1960f00f5985c390a80a0
  Author: Tianqing Wang <tianqing.wang at intel.com>
  Date:   2021-06-29 (Tue, 29 Jun 2021)

  Changed paths:
    M llvm/test/CodeGen/X86/x86-cmov-converter.ll

  Log Message:
  -----------
  [X86] Add a test to reveal a bug in CMOV conversion.

CMOV conversion first rewrites all CMOVs with memory load to branches.
Then runs a second pass to convert other CMOVs in loops if profitable.
But the first pass doesn't add new basic blocks to MachineLoopInfo,
CMOVs in these blocks are ignored in the subsequent pass.

Reviewed By: pengfei

Differential Revision: https://reviews.llvm.org/D104692




More information about the All-commits mailing list