[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 12:17:00 PDT 2018


xbolva00 added a comment.

In https://reviews.llvm.org/D52164#1237188, @hfinkel wrote:

> > disable this fold when comparing noalias ptr with null
>
> But it's not just comparing to a nullptr constant, it's also comparing to another SSA value that, dynamically, is null.


Yeah.

But like the original idea was, we could handle comparison of noalias ptr to ptr pointing to global vars/functions, no?


Repository:
  rL LLVM

https://reviews.llvm.org/D52164





More information about the llvm-commits mailing list