The code is like A–>B–>C, A calls B and B calls C.
A, B, C are functions.
A and B have different calling convention.
The calling convention of B is added by myself.
In function B, B saves and restores some registers in the prolgue and epilogue.
I modify some code in frame lowering to make B have additional callee saved registers.
After inlining, code becomes A → C,
I expect that the function body of A would be
But the result is, A calls C directly without any prologue/epilogue which are origianlly in B.
In my case, the program crashed because reg1, reg2, reg3 are clobbered by C.
How to make inliner be aware of different calling convention between A and B?
Thanks a lot !!