[PATCH] D28270: Remove a unnecessary hasLoopInvariantOperands check in loop sink.
Xin Tong via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 5 09:03:30 PST 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL291132: Remove a unnecessary hasLoopInvariantOperands check in loop sink. (authored by trentxintong).
Changed prior to commit:
https://reviews.llvm.org/D28270?vs=82981&id=83256#toc
Repository:
rL LLVM
https://reviews.llvm.org/D28270
Files:
llvm/trunk/lib/Transforms/Scalar/LoopSink.cpp
Index: llvm/trunk/lib/Transforms/Scalar/LoopSink.cpp
===================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopSink.cpp
+++ llvm/trunk/lib/Transforms/Scalar/LoopSink.cpp
@@ -283,8 +283,7 @@
// sinked.
for (auto II = Preheader->rbegin(), E = Preheader->rend(); II != E;) {
Instruction *I = &*II++;
- if (!L.hasLoopInvariantOperands(I) ||
- !canSinkOrHoistInst(*I, &AA, &DT, &L, &CurAST, nullptr))
+ if (!canSinkOrHoistInst(*I, &AA, &DT, &L, &CurAST, nullptr))
continue;
if (sinkInstruction(L, *I, ColdLoopBBs, LoopBlockNumber, LI, DT, BFI))
Changed = true;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28270.83256.patch
Type: text/x-patch
Size: 650 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170105/38bfd765/attachment.bin>
More information about the llvm-commits
mailing list