[llvm-dev] [InstCombine] Addrspacecast and GEP assumed commutative

Matt Arsenault via llvm-dev llvm-dev at lists.llvm.org
Mon Mar 23 11:05:11 PDT 2020

> On Mar 23, 2020, at 10:52, Thomas Faingnaert via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> Would replacing this by stripPointerCastsSameRepresentation be an acceptable solution, or do other parts of LLVM rely on this reordering?
> If not, I can send a patch in Phabricator to address this issue.

This is probably the right solution. Nothing should be relying on this anyway

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200323/22c6b90c/attachment.html>

More information about the llvm-dev mailing list