[PATCH] D26434: Preserve assumption cache in loop-rotate
Eli Friedman via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 9 15:14:55 PST 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL286410: Preserve assumption cache in loop-rotate. (authored by efriedma).
Changed prior to commit:
https://reviews.llvm.org/D26434?vs=77290&id=77406#toc
Repository:
rL LLVM
https://reviews.llvm.org/D26434
Files:
llvm/trunk/lib/Transforms/Scalar/LoopRotation.cpp
Index: llvm/trunk/lib/Transforms/Scalar/LoopRotation.cpp
===================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopRotation.cpp
+++ llvm/trunk/lib/Transforms/Scalar/LoopRotation.cpp
@@ -326,6 +326,10 @@
// Otherwise, stick the new instruction into the new block!
C->setName(Inst->getName());
C->insertBefore(LoopEntryBranch);
+
+ if (auto *II = dyn_cast<IntrinsicInst>(C))
+ if (II->getIntrinsicID() == Intrinsic::assume)
+ AC->registerAssumption(II);
}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26434.77406.patch
Type: text/x-patch
Size: 559 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161109/e72504cc/attachment.bin>
More information about the llvm-commits
mailing list