[PATCH] D94866: [ValueTracking] Strengthen impliesPoison reasoning

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 16 08:24:50 PST 2021


nikic created this revision.
nikic added a reviewer: aqjune.
nikic requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This implements the same basic change as D94859 <https://reviews.llvm.org/D94859>, but in a more general way. directlyImpliesPoison recurses on V, impliesPoison recurses on ValAssumedPoison. Both recursions have independent small depth limits. This allows us to handle more than just the icmp+icmp case, such as the mask+icmp case for example.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D94866

Files:
  lib/Analysis/ValueTracking.cpp
  test/Transforms/InstCombine/select-and-or.ll
  unittests/Analysis/ValueTrackingTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94866.317179.patch
Type: text/x-patch
Size: 6461 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210116/f0715aa6/attachment.bin>


More information about the llvm-commits mailing list