Sameer AbuAsal
70926d1510
[RISCV] Tail calls don't need to save return address
...
Summary:
When expanding the PseudoTail in expandFunctionCall() we were using X6
to save the return address. Since this is a tail call the return
address is not needed, this patch replaces it with X0 to be ignored.
This matches the behaviour listed in the ISA V2.2 document page 110.
tail offset -----> jalr x0, x6, offset
GCC exhibits the same behavior.
Reviewers: apazos, asb, mgrang
Reviewed By: asb
Subscribers: rbar, johnrusso, simoncook, niosHD, kito-cheng, shiva0217, zzheng, edward-jones, rogfer01
Differential Revision: https://reviews.llvm.org/D48343
llvm-svn: 335239
2018-06-21 14:37:09 +00:00
..
2018-04-06 21:07:05 +00:00
2018-04-06 21:07:05 +00:00
2018-04-06 21:07:05 +00:00
2018-04-06 21:07:05 +00:00
2018-04-12 19:22:40 +00:00
2018-04-06 21:07:05 +00:00
2018-05-18 06:42:21 +00:00
2018-01-12 02:27:00 +00:00
2018-05-17 05:58:08 +00:00
2018-05-17 05:58:08 +00:00
2018-01-26 07:53:07 +00:00
2017-10-18 16:11:31 +00:00
2018-04-06 21:07:05 +00:00
2017-09-28 08:26:24 +00:00
2018-05-23 12:36:18 +00:00
2018-05-30 01:16:36 +00:00
2018-04-25 14:18:55 +00:00
2018-05-30 01:16:36 +00:00
2018-05-23 12:36:18 +00:00
2018-05-23 12:36:18 +00:00
2018-05-30 01:16:36 +00:00
2018-05-11 17:30:28 +00:00
2018-05-11 17:30:28 +00:00
2017-12-13 12:46:55 +00:00
2017-12-15 09:47:01 +00:00
2018-04-06 21:07:05 +00:00
2018-05-18 06:42:21 +00:00
2017-12-07 10:59:12 +00:00
2017-12-15 09:47:01 +00:00
2018-06-07 15:35:47 +00:00
2018-02-22 15:02:28 +00:00
2018-04-06 18:27:45 +00:00
2018-02-22 15:02:28 +00:00
2017-12-07 10:46:23 +00:00
2017-12-15 09:47:01 +00:00
2017-12-13 09:32:55 +00:00
2018-02-02 06:01:02 +00:00
2017-12-07 11:02:55 +00:00
2017-12-15 09:47:01 +00:00
2017-12-13 09:32:55 +00:00
2018-02-02 06:01:02 +00:00
2018-06-07 15:35:47 +00:00
2018-06-07 15:35:47 +00:00
2018-06-08 10:39:05 +00:00
2018-06-08 10:39:05 +00:00
2017-12-07 10:56:07 +00:00
2017-12-15 09:47:01 +00:00
2018-05-18 06:42:21 +00:00
2017-12-07 10:59:12 +00:00
2017-12-15 09:47:01 +00:00
2018-06-07 15:35:47 +00:00
2017-12-15 10:20:51 +00:00
2018-02-02 06:01:02 +00:00
2017-12-15 09:47:01 +00:00
2017-12-07 11:05:38 +00:00
2017-12-15 09:47:01 +00:00
2018-02-02 06:01:02 +00:00
2017-12-15 09:47:01 +00:00
2017-12-07 11:02:55 +00:00
2017-12-15 09:47:01 +00:00
2018-06-07 15:35:47 +00:00
2018-06-07 15:35:47 +00:00
2017-12-07 10:53:48 +00:00
2017-12-15 09:47:01 +00:00
2017-12-15 09:47:01 +00:00
2018-06-20 14:03:02 +00:00
2018-06-20 18:42:25 +00:00
2018-06-20 12:54:02 +00:00
2018-05-17 17:31:27 +00:00
2018-06-21 14:37:09 +00:00