Commit 00b77d9
committed
[DSE] Remove alloc function check in canSkipDef()
canSkipDef() currently skips inaccessiblememonly calls, but not
if they are allocation functions. This check was added in D103009,
but actually seems to be a leftover from a previous implementation
in D101440. canSkipDef() is not used on the storeIsNoop() path,
where the relevant transform ended up being implemented.
Differential Revision: https://reviews.llvm.org/D1170051 parent 4b22ffe commit 00b77d9
1 file changed
+5
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
699 | 699 | | |
700 | 700 | | |
701 | 701 | | |
702 | | - | |
703 | | - | |
| 702 | + | |
704 | 703 | | |
705 | 704 | | |
706 | 705 | | |
707 | 706 | | |
708 | | - | |
709 | | - | |
710 | | - | |
| 707 | + | |
711 | 708 | | |
712 | | - | |
| 709 | + | |
713 | 710 | | |
714 | 711 | | |
715 | 712 | | |
| |||
1264 | 1261 | | |
1265 | 1262 | | |
1266 | 1263 | | |
1267 | | - | |
1268 | | - | |
| 1264 | + | |
| 1265 | + | |
1269 | 1266 | | |
1270 | 1267 | | |
1271 | 1268 | | |
| |||
0 commit comments