[PATCH] D52164: [InstSimplify] Fold ne/eq comparison of a pointer produced by a noalias function

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 17 01:53:51 PDT 2018


xbolva00 added a comment.

Yes, I will add more tests. Suggestions welcome.



================
Comment at: test/Transforms/InstSimplify/icmp-noalias-pointers.ll:21-22
+  %cmp = icmp eq i8* %call, bitcast (i32 ()* @foo to i8*)
+  %conv = zext i1 %cmp to i32
+  ret i32 %conv
+}
----------------
lebedev.ri wrote:
> Just return `i1`? I don't think we care about anything else other than the `i1`.
Ok, I will change it.


Repository:
  rL LLVM

https://reviews.llvm.org/D52164





More information about the llvm-commits mailing list