[PATCH] D98150: [ConstantFold] allow folding icmp of null and constexpr

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 7 12:49:36 PST 2021


lebedev.ri accepted this revision.
lebedev.ri added a comment.

I think this is fine.



================
Comment at: llvm/test/Transforms/InstSimplify/ConstProp/icmp-null.ll:3
 ; RUN: opt < %s -instsimplify -S -verify | FileCheck %s
 
 define i1 @ule_null_constexpr(i8* %x) {
----------------
I think it would be good to test other inequality comparison opcodes too, if only as negative tests.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D98150/new/

https://reviews.llvm.org/D98150



More information about the llvm-commits mailing list