[PATCH] D52548: Stop instcombining introducing undef's in div/rem instructions.

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 26 07:47:07 PDT 2018


spatel added a comment.

In https://reviews.llvm.org/D52548#1246583, @sheredom wrote:

> Just to be clear you want me to commit the tests in a separate commit with the bad output first?


Yes - that way we'll have evidence of the bogus output, so if the code patch that fixes those bugs gets reverted for some reason, we'll know that we've reintroduced potential miscompiles.

> I'll remove the spir_func, but everything else in the tests is requied (instcombine will only attempt the opt if it sees the insertelement instructions as the input to the div/rem from what I can tell).

Sounds good - I couldn't tell just from looking how we trigger the problem.

> I don't have commit access to LLVM's trunk (long time user, finally able to be a contributor), do you want me to just file another review for just the test case?

Great - welcome! Yes, if you don't have commit rights yet, just post the test file in another review, and I'll commit it on your behalf.


Repository:
  rL LLVM

https://reviews.llvm.org/D52548





More information about the llvm-commits mailing list