Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Target/X86/X86ISelLowering.cpp | ||
---|---|---|
22363 | Why doesn't this already work? The comment exists just to point out that getPtrSizedFrameRegister will sometimes select SP based on exactly the condition you've listed here, unless I'm mistaken. |
lib/Target/X86/X86ISelLowering.cpp | ||
---|---|---|
22363 | I think when stack is realigned, compiler choose sp as base to access local variable, however bp is still used to recover sp when return from the function. |
Comment Actions
lgtm
lib/Target/X86/X86ISelLowering.cpp | ||
---|---|---|
22363 | I see the issue, hasFP is true for this function, but SP is used to address local variables. |
Why doesn't this already work? The comment exists just to point out that getPtrSizedFrameRegister will sometimes select SP based on exactly the condition you've listed here, unless I'm mistaken.