mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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:
@@ -355,3 +355,7 @@ bool SILBasicBlock::isTrampoline() const {
|
||||
return false;
|
||||
return begin() == Branch->getIterator();
|
||||
}
|
||||
|
||||
bool SILBasicBlock::isLegalToHoistInto() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user