[PATCH] D52164: [InstSimplify] Fold ne/eq comparison of a pointer produced by a noalias function
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 17 01:41:11 PDT 2018
lebedev.ri added a comment.
Are there tests with comparisons with `nullptr`? (Also mind the `nullptr is valid` thingy)
================
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
+}
----------------
Just return `i1`? I don't think we care about anything else other than the `i1`.
Repository:
rL LLVM
https://reviews.llvm.org/D52164
More information about the llvm-commits
mailing list