================
@@ -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
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits