[PATCH] D84007: [ValueTracking] Add canCreateUndefOrPoison & let canCreatePoison use Operator

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 19 06:21:57 PDT 2020


nikic accepted this revision.
nikic added a comment.
This revision is now accepted and ready to land.

LG



================
Comment at: llvm/unittests/Analysis/ValueTrackingTest.cpp:813
+        << "Incorrect answer of canCreateUndef at instruction " << Index
+        << " = " << I;
     Index++;
----------------
This might be more obvious if it tested for `canCreateUndefOrPoison && !canCreatePoison == Undef`.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D84007





More information about the llvm-commits mailing list