[PATCH] D32208: [GVN] Don't coerce non-integral pointers to integers or vice versa

Sanjoy Das via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 18 18:14:14 PDT 2017


sanjoy created this revision.
Herald added subscribers: Prazek, mcrosier.

See http://llvm.org/docs/LangRef.html#non-integral-pointer-type

The NewGVN test does not fail without these changes (perhaps it does
try to coerce pointers <-> integers to begin with?), but I added the
test case anyway.


https://reviews.llvm.org/D32208

Files:
  lib/Transforms/Utils/VNCoercion.cpp
  test/Transforms/GVN/non-integral-pointers.ll
  test/Transforms/NewGVN/non-integral-pointers.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32208.95668.patch
Type: text/x-patch
Size: 2960 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170419/1219a5c2/attachment.bin>


More information about the llvm-commits mailing list