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.
Details
Details
- Reviewers
pengfei RKSimon - Commits
- rGcf59d67c6407: [X86] Fix the bug of pr62625
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM
llvm/test/CodeGen/X86/x86-64-baseptr.ll | ||
---|---|---|
310 | You can probably add nounwind to strip some cfi noise |
This can be void