[PATCH] D149404: [ValueTracking][InstCombine] Add a new API to allow to ignore poison generating flags or metadatas when implying poison
Noah Goldstein via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 12 15:10:40 PDT 2023
goldstein.w.n added inline comments.
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp:2932
+ if (impliesPoisonIgnoreFlagsOrMetadatas(FalseVal, CondVal, DropFlags)) {
+ for (Instruction *I : DropFlags)
+ I->dropPoisonGeneratingFlagsAndMetadata();
----------------
Still in favor of putting this loop in some API function. It can be in InstCombine.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149404/new/
https://reviews.llvm.org/D149404
More information about the llvm-commits
mailing list