Jingu Kang
873ff5a728
[SimpleLoopUnswich] Fixa a bug on ComputeUnswitchedCost with partial unswitch
...
There was a bug from cost calculation for partially invariant unswitch.
The costs of non-duplicated blocks are substracted from the total LoopCost, so
anything that is duplicated should not be counted.
Differential Revision: https://reviews.llvm.org/D103816
2021-06-22 16:18:00 +01:00
Jingu Kang
f3a27511c9
[SimpleLoopUnswitch] Port partially invariant unswitch from LoopUnswitch to SimpleLoopUnswitch
...
This re-enables commit 107d19eb017ff6734986af077eb2e9f6600114a9 with bug fixes.
Differential Revision: https://reviews.llvm.org/D99354
2021-06-02 10:58:22 +01:00
Jingu Kang
107d19eb01
Revert "[SimpleLoopUnswitch] Port partially invariant unswitch from LoopUnswitch to SimpleLoopUnswitch"
...
This reverts commit 88b259c01463c08ac2575b4432c07ea7751946b5.
It needs to fix below bugs.
https://bugs.llvm.org/show_bug.cgi?id=50279
https://bugs.llvm.org/show_bug.cgi?id=50302
2021-05-13 08:40:49 +01:00
Jingu Kang
88b259c014
[SimpleLoopUnswitch] Port partially invariant unswitch from LoopUnswitch to SimpleLoopUnswitch
...
Differential Revision: https://reviews.llvm.org/D99354
2021-04-30 15:55:56 +01:00
Jingu Kang
ab72871703
[SimpleLoopUnswitch] Fix wrong assertions in partial-unswitch.ll
2021-03-29 14:04:29 +01:00
Jingu Kang
07142b3040
[SimpleLoopUnswitch] Add tests to check partially invariant unswitch
...
Differential Revision: https://reviews.llvm.org/D99493
2021-03-29 13:06:32 +01:00