[PATCH] D76010: [ValueTracking] Let isGuaranteedNotToBeUndefOrPoison look into more constants/instructions
Johannes Doerfert via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 16 09:14:55 PDT 2020
jdoerfert added a comment.
I don't see a problem in the logic but we need more tests, see below.
================
Comment at: llvm/test/Transforms/InstSimplify/freeze.ll:115
+
define i1 @brcond(i1 %c, i1 %c2) {
; CHECK-LABEL: @brcond(
----------------
We need more (negative) tests that verify we don't do thing we shouldn't. Optimally one for each restriction we have, e.g., gep non-inbounds with potential undef/poison operand (one for base one for index).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D76010/new/
https://reviews.llvm.org/D76010
More information about the llvm-commits
mailing list