Commit 9bc38df
authored
[LoopFusion] Simplifying the legality checks (#171889)
Considering that the current loop fusion only supports adjacent loops,
we are able to simplify the checks in this pass. By removing
`isControlFlowEquivalent` check, this patch fixes multiple issues
including #166560, #166535, #165031, #80301 and #168263.
Now only the sequential/adjacent candidates are collected in the same
list. This patch is the implementation of approach 2 discussed in post
#171207.1 parent 0603d4a commit 9bc38df
File tree
6 files changed
+233
-816
lines changed- llvm
- include/llvm/Transforms/Utils
- lib/Transforms
- Scalar
- Utils
- test/Transforms/LoopFusion
- unittests/Transforms/Utils
6 files changed
+233
-816
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | 30 | | |
47 | 31 | | |
48 | 32 | | |
| |||
0 commit comments