[PATCH] D33653: [Polly] Iterate over explicit instruction list in CodeGen for block statements. NFC

Michael Kruse via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 1 02:55:43 PDT 2017


Meinersbur added a comment.

In https://reviews.llvm.org/D33653#769688, @nandini12396 wrote:

> For the same input file, whose IR contains intrinsics, I tried generating IR again, but it did not contain intrinsics. Is there some flag required for generating intrinsics?


The ignored intrinsics are never generated. That's not the problem we see here.

The issue is that the llvm.lifetime.start gets deleted between ScopInfo and BlockGenerator. Still accessing it causes a use-after-free <https://www.owasp.org/index.php/Using_freed_memory> error.  Use Valgrind Memcheck <https://en.wikipedia.org/wiki/Valgrind> or AddressSanitizer <https://en.wikipedia.org/wiki/AddressSanitizer> to find those.


https://reviews.llvm.org/D33653





More information about the llvm-commits mailing list