[PATCH] D66608: [InstCombine] icmp eq/ne (gep inbounds P, Idx..), null -> icmp eq/ne P, null

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 23 08:28:48 PDT 2019


xbolva00 added inline comments.


================
Comment at: lib/Transforms/InstCombine/InstCombineCompares.cpp:907
+    // the only valid inbounds address derived from null, is null itself.
+    // Thus, we have three cases to consider:
+    // 1) Base == nullptr, Index == 0 -> inbounds, null
----------------
Four?


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

https://reviews.llvm.org/D66608





More information about the llvm-commits mailing list