[SIL] Implement a very simple isLegalToHoistInto for llvm::LoopInfo.

I'm not a SIL author, so it's likely that this could be improved,
but I think this is closest to the old LLVM behavior.
This commit is contained in:
Jordan Rose
2017-06-23 12:48:33 -07:00
parent aff8d06b6a
commit c22168d02d
2 changed files with 9 additions and 0 deletions

View File

@@ -355,3 +355,7 @@ bool SILBasicBlock::isTrampoline() const {
return false;
return begin() == Branch->getIterator();
}
bool SILBasicBlock::isLegalToHoistInto() const {
return true;
}