[di] Now that DI and PMO are split, debride some dead code.

Specifically isDefiniteInitFinished is always set to false and
TreatAddressToPointerAsInout is set to true when ever DI is run, so this patch
just constant propagates those values and then DCEs as appropriate.
This commit is contained in:
Michael Gottesman
2019-12-20 17:42:18 -08:00
parent 74120f3e9f
commit 2cf6d02a93
3 changed files with 10 additions and 35 deletions

View File

@@ -2888,8 +2888,7 @@ static void processMemoryObject(MarkUninitializedInst *I) {
DIElementUseInfo UseInfo;
// Walk the use list of the pointer, collecting them into the Uses array.
collectDIElementUsesFrom(MemInfo, UseInfo, false,
/*TreatAddressToPointerAsInout*/ true);
collectDIElementUsesFrom(MemInfo, UseInfo);
LifetimeChecker(MemInfo, UseInfo).doIt();
}