This patch makes sure FirstCSPop and MBBI never point to DBG_VALUE instructions, which affected the code generated.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
The change itself looks good to me, but would be nice to simplify/cleanup the testcase.
| lib/Target/X86/X86FrameLowering.cpp | ||
|---|---|---|
| 1559–1565 ↗ | (On Diff #80067) | You could use this to avoid code duplication: if (Opc != Pop32 && Opc != Pop64) break; FirstCSPop = PI; } |
| test/CodeGen/X86/frame-lowering-debug-intrinsic.ll | ||
| 4 ↗ | (On Diff #80067) | The test seems bigger than necessary. Some things that could be simplified:
|
| 23 ↗ | (On Diff #80067) | Use CHECK-LABEL noDebug: to improve FileCheck output in case of errors. |
| 46 ↗ | (On Diff #80067) | CHECK-LABEL |
| test/CodeGen/X86/frame-lowering-debug-intrinsic.ll | ||
|---|---|---|
| 4 ↗ | (On Diff #80067) | I've reduced the test case quite a bit. AFAIK the debug data in the test case is the minimum required. |
Thanks, LGTM. Nitpick below.
| test/CodeGen/X86/frame-lowering-debug-intrinsic.ll | ||
|---|---|---|
| 3 ↗ | (On Diff #80330) | Nitpick: I prefer llc -o - %s over llc < %s because the former can be prefixed with lldb -- and still works as expected. |
The LGTM still stands. I often accept a review even with outstanding nitpicks when I trust that the author can fix the remaining items without the need for another review round.