[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 11:15:27 PDT 2018


xbolva00 added a comment.

int f(int n) {

  int *x = (int *)malloc(n);
  free(x);
  int *y =  (int *)malloc(n);
  return (y == x) ;

}

This has been already folded to true even before this patch.


Repository:
  rL LLVM

https://reviews.llvm.org/D52164





More information about the llvm-commits mailing list