diff options
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyCFG.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/SimplifyCFG.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp index 5cd244c..d94abea 100644 --- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp @@ -2208,14 +2208,6 @@ static bool canSinkInstructions( if (!I->isSameOperationAs(I0, Instruction::CompareUsingIntersectedAttrs)) return false; - // swifterror pointers can only be used by a load or store; sinking a load - // or store would require introducing a select for the pointer operand, - // which isn't allowed for swifterror pointers. - if (isa<StoreInst>(I) && I->getOperand(1)->isSwiftError()) - return false; - if (isa<LoadInst>(I) && I->getOperand(0)->isSwiftError()) - return false; - // Treat MMRAs conservatively. This pass can be quite aggressive and // could drop a lot of MMRAs otherwise. if (MMRAMetadata(*I) != I0MMRA) |