[PATCH] D86834: [InstSimplify] Protect against more poison in SimplifyWithOpReplaced (PR47322)
Juneyoung Lee via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 29 02:43:38 PDT 2020
aqjune added inline comments.
================
Comment at: llvm/lib/Analysis/InstructionSimplify.cpp:3799
// by dropping the flags. Remove this fold to save compile-time?
- if (isa<OverflowingBinaryOperator>(B))
- if (Q.IIQ.hasNoSignedWrap(B) || Q.IIQ.hasNoUnsignedWrap(B))
- return nullptr;
- if (isa<PossiblyExactOperator>(B) && Q.IIQ.isExact(B))
+ if (canCreatePoison(cast<Operator>(I)))
return nullptr;
----------------
This diff has a side effect when IIQ's UseInstrInfo is false (and I think it is okay because this change leads to less potential poison-related problems, but) when is the flag set to false?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D86834/new/
https://reviews.llvm.org/D86834
More information about the llvm-commits
mailing list