Adds support for "probe-stack" on x86
Details
Diff Detail
Event Timeline
| lib/Target/X86/X86FrameLowering.cpp | ||
|---|---|---|
| 502–506 | Please combine this logic with the if/else-if chain. | |
| 532–534 | Can you use getSUBrrOpcode here? | |
| 888 | Please capitalize variable names. | |
| 903 | (Is64Bit ? 8 : 4) is just SlotSize. Also, this looks formatted strangely; consider running clang-format on this. | |
| test/CodeGen/X86/stack-probes.ll | ||
| 2–3 | FIleCheck prefixes are usually all caps. | |
| include/llvm/CodeGen/MachineFunction.h | ||
|---|---|---|
| 290 | I think this part should be '\brief' | |
| 291–294 | This bit should just be with the definition as per the coding standard: http://llvm.org/docs/CodingStandards.html#doxygen-use-in-documentation-comments | |
| lib/Target/X86/X86FrameLowering.cpp | ||
| 512–513 | Please place braces around this else | |
| 919–920 | This comment should probably be with the NumBytesAdj bit above. Please update the -4 bit as well. | |
The guard region size is passed in RBX/EBX to __probestack. R11 and RBX/EBX is properly spilled if live.
Can we have a test which exercises the [RE]BX case?
| lib/Target/X86/X86FrameLowering.cpp | ||
|---|---|---|
| 207 | getX86SubSuperRegister(CheckReg, MVT::i32) can be hoisted out of the loop. | |
| 438–448 | Please make this an early return, it would reduce indentation. | |
| 441 | Comments should be complete sentences and end with punctuation. | |
| 446 | Please end this sentence with a period. | |
| 447 | Please use SlotSize here. | |
| 458–470 | Please make this an early return, it would reduce indentation. | |
| 883–885 | I think this deserves a comment. | |
| 890 | I think this also deserves a comment. | |
I think this part should be '\brief'