[PATCH] D37460: [GVN] Prevent LoadPRE from hoisting through guards
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 8 12:21:36 PDT 2017
efriedma added inline comments.
================
Comment at: lib/Transforms/Scalar/GVN.cpp:2042
+ auto *II = dyn_cast<IntrinsicInst>(&I);
+ return II && II->getIntrinsicID() == Intrinsic::experimental_guard;
+ };
----------------
Why does this specifically apply to guards, as opposed to anything where isGuaranteedToTransferExecutionToSuccessor() is false?
https://reviews.llvm.org/D37460
More information about the llvm-commits
mailing list