[all-commits] [llvm/llvm-project] cf59d6: [X86] Fix the bug of pr62625

Luo, Yuanke via All-commits all-commits at lists.llvm.org
Sun May 14 07:08:50 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cf59d67c6407bc27693a08e18ad9b8254a38ec2d
      https://github.com/llvm/llvm-project/commit/cf59d67c6407bc27693a08e18ad9b8254a38ec2d
  Author: Luo, Yuanke <yuanke.luo at intel.com>
  Date:   2023-05-14 (Sun, 14 May 2023)

  Changed paths:
    M llvm/lib/Target/X86/X86RegisterInfo.cpp
    M llvm/test/CodeGen/X86/x86-64-baseptr.ll

  Log Message:
  -----------
  [X86] Fix the bug of pr62625

We should not call tryOptimizeLEAtoMOV() in eliminateFrameIndex() when
the base register is a virtual register, because tryOptimizeLEAtoMOV
would assume the base register be physical register. Although we can
also optimize LEA to MOV with virtual register, I'd like to leave the
optimization in another patch.

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




More information about the All-commits mailing list