[PATCH] D38546: [ConstantFolding] Avoid assert when folding ptrtoint of vectorized GEP
Bjorn Pettersson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 18 08:40:32 PDT 2017
bjope added a comment.
In https://reviews.llvm.org/D38546#900133, @efriedma wrote:
> The constant expression ptrtoint is supposed to have the same rules as the instruction ptrtoint. Looks like we just forgot to update LangRef when pointer vectors were added.
Then the test case is valid.
And this patch avoids the assert by not executing the piece of code that does not support a getelementptr that returns a pointer of vectors. So it is a simple bugfix for an existing problem.
So can I land this now?
https://reviews.llvm.org/D38546
More information about the llvm-commits
mailing list