Commit e160af6
committed
[SCEV] Use pattern match to check ZExt(Add()). (NFC)
Follow-up to
llvm#151227 (review)
to check the inner expression is an Add before calling getTruncateExpr.
Adds a new matcher that just matches and captures SCEVAddExpr, to
support matching a SCEVAddExpr with arbitrary number of operands.
(cherry picked from commit ab9b23c)1 parent 4c941bf commit e160af6
File tree
2 files changed
+11
-8
lines changed- llvm
- include/llvm/Analysis
- lib/Analysis
2 files changed
+11
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
94 | 98 | | |
95 | 99 | | |
96 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2685 | 2685 | | |
2686 | 2686 | | |
2687 | 2687 | | |
2688 | | - | |
2689 | | - | |
2690 | | - | |
2691 | | - | |
2692 | | - | |
2693 | | - | |
2694 | | - | |
| 2688 | + | |
| 2689 | + | |
| 2690 | + | |
| 2691 | + | |
| 2692 | + | |
| 2693 | + | |
2695 | 2694 | | |
2696 | 2695 | | |
2697 | | - | |
| 2696 | + | |
2698 | 2697 | | |
2699 | 2698 | | |
2700 | 2699 | | |
| |||
0 commit comments