<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, May 3, 2016 at 9:35 AM, Pete Cooper <span dir="ltr"><<a href="mailto:peter_cooper@apple.com" target="_blank">peter_cooper@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Thanks for reverting this.  I think it also caused some LTO failures on green dragon, although I was still trying to reproduce them to make sure.<div><br></div><div>More detail is here (<a href="http://lab.llvm.org:8080/green/job/clang-stage2-configure-Rlto_build/8797/consoleFull" target="_blank">http://lab.llvm.org:8080/green/job/clang-stage2-configure-Rlto_build/8797/consoleFull</a>), but were you seeing something like the following?</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>While deleting: i8* %</div></div><div><div>Use still stuck around after Def is destroyed:  call void @llvm.lifetime.end(i64 24, i8* nonnull <badref>) #3, !dbg !4862</div></div><div><div>Use still stuck around after Def is destroyed:  %.pre194 = load i8, i8* <badref>, align 8, !dbg !4799, !tbaa !4501</div></div><div><div>Use still stuck around after Def is destroyed:  call void @llvm.memset.p0i8.i64(i8* <badref>, i8 0, i64 24, i32 8, i1 false) #3, !dbg !4783, !alias.scope !4791</div></div><div><br></div><div>Assertion failed: (use_empty() && "Uses remain when a value is destroyed!"), function ~Value, file /Users/buildslave/jenkins/sharedspace/phase1@2/llvm/lib/IR/Value.cpp, line 85.</div></blockquote><div><br></div>Cheers,<div>Pete</div></div></blockquote><div><br></div><div>Yep, I saw precisely that kind of assertion failure.</div></div></div></div>