[PATCH] D145008: [ControlHeightReduction] Don't combine a "poison" branch
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 2 00:03:14 PST 2023
nikic added inline comments.
================
Comment at: llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp:1966
+ // Freeze potentially poisonous conditions.
+ if (!isGuaranteedNotToBeUndefOrPoison(Cond))
Cond = IRB.CreateFreeze(Cond);
----------------
Is it possible to detect the case where a swap occurred, or is this too complicated?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145008/new/
https://reviews.llvm.org/D145008
More information about the llvm-commits
mailing list