Skip to content

Commit 7b97600

Browse files
authored
Merge pull request #30072 from gottesmm/pr-34c83bffd02fdda5f6ae753f817448abbe69987a
[temp-rvalue-opt] Update temp-rvalue-opt for OSSA.
2 parents 8a87ec3 + 54e2d97 commit 7b97600

File tree

2 files changed

+659
-3
lines changed

2 files changed

+659
-3
lines changed

lib/SILOptimizer/Transforms/TempRValueElimination.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -393,9 +393,6 @@ bool TempRValueOptPass::tryOptimizeCopyIntoTemp(CopyAddrInst *copyInst) {
393393

394394
/// The main entry point of the pass.
395395
void TempRValueOptPass::run() {
396-
if (getFunction()->hasOwnership())
397-
return;
398-
399396
LLVM_DEBUG(llvm::dbgs() << "Copy Peephole in Func "
400397
<< getFunction()->getName() << "\n");
401398

0 commit comments

Comments
 (0)