[PATCH] D50775: [InstCombine] Fix IC trying to create a xor of pointer types

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 15 08:32:56 PDT 2018


spatel added reviewers: efriedma, lebedev.ri.
spatel added a comment.

> I've fixed this by doing a ptrtoint convert on the assumption that ptrtoints are free.

I don't think we can make that assumption as a target-independent transform. Restrict this fold to integer types instead?


Repository:
  rL LLVM

https://reviews.llvm.org/D50775





More information about the llvm-commits mailing list