[llvm-branch-commits] Utils: Inhibit load/store folding through phis for llvm.protected.field.ptr. (PR #151649)
Nikita Popov via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Aug 1 00:55:23 PDT 2025
================
@@ -3846,10 +3846,7 @@ bool llvm::canReplaceOperandWithVariable(const Instruction *I, unsigned OpIdx) {
if (Op->getType()->isMetadataTy())
return false;
- // swifterror pointers can only be used by a load, store, or as a swifterror
- // argument; swifterror pointers are not allowed to be used in select or phi
- // instructions.
- if (Op->isSwiftError())
+ if (!shouldFoldLoadStoreWithPointerOperandThroughPhi(Op))
----------------
nikic wrote:
This is going to apply not to just loads and stores.
https://github.com/llvm/llvm-project/pull/151649
More information about the llvm-branch-commits
mailing list