By using reg_nodbg_empty() to determine if a function can be treated as a leaf function or not, we miss the case when the register pair L0_L1 is used but not L0 by itself. This has the effect that use_all_i32_regs(), a test in reserved-regs.ll which tries to use all registers, gets treated as a leaf function.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
What about this fix? Will it be committed?
The test reserved-regs.ll is one of two remaining fails that are observed if expensive checks are enabled (https://llvm.org/bugs/show_bug.cgi?id=30999)
With this fix the test passes.
Comment Actions
Hi Daniel,
Your patch fixes the last failing test when expensive checks are enabled. Do you plan to commit this fix?
Thanks.
Comment Actions
Hi Serge,
I would like to have it committed, but have not gotten it approved by anyone yet. If you could click the accept revision button I can commit it tomorrow.