[PATCH] D150521: [X86] Fix the bug of pr62625
LuoYuanke via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun May 14 04:03:04 PDT 2023
LuoYuanke created this revision.
Herald added subscribers: pengfei, hiraditya.
Herald added a project: All.
LuoYuanke requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
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 in virtual register, we'll leave the
optimization in another patch.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D150521
Files:
llvm/lib/Target/X86/X86RegisterInfo.cpp
llvm/test/CodeGen/X86/x86-64-baseptr.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150521.521987.patch
Type: text/x-patch
Size: 4927 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230514/47dc6fd7/attachment.bin>
More information about the llvm-commits
mailing list