[PATCH] D71181: [ValueTracking] Allow context-sensitive nullness check for non-pointers

Johannes Doerfert via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 8 20:18:59 PST 2019


jdoerfert created this revision.
jdoerfert added reviewers: nikic, nlopes, mkazantsev, spatel, dlrobertson, uabelho, hakzsam, hans.
Herald added subscribers: asbirlea, bollu, hiraditya.
Herald added a project: LLVM.

Same as D60846 <https://reviews.llvm.org/D60846> and D69571 <https://reviews.llvm.org/D69571> but with a fix for the problem encountered
after them. Both times it was a missing context adjustment in the
handling of PHI nodes.

The reproducers created from the bugs that caused the old commits to be
reverted are included.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D71181

Files:
  llvm/lib/Analysis/InstructionSimplify.cpp
  llvm/lib/Analysis/ValueTracking.cpp
  llvm/test/Transforms/Attributor/nonnull.ll
  llvm/test/Transforms/InstCombine/known-non-zero.ll
  llvm/test/Transforms/InstSimplify/known-non-zero.ll
  llvm/test/Transforms/LICM/hoist-mustexec.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71181.232755.patch
Type: text/x-patch
Size: 11999 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191209/abdeae04/attachment.bin>


More information about the llvm-commits mailing list