[TypeShrinking] Fix styling issues

This commit is contained in:
Qian Matteo Chen
2020-12-17 05:06:19 -08:00
committed by Pietro Fezzardi
parent 750b326d24
commit 04085ecd99
3 changed files with 28 additions and 22 deletions
+13 -7
View File
@@ -40,14 +40,20 @@ static llvm::RegisterPass<BitLivenessPass> X("bit-liveness",
const uint32_t Top = std::numeric_limits<uint32_t>::max();
bool isDataFlowSink(const Instruction *Ins) {
if (Ins->mayHaveSideEffects() || Ins->getOpcode() == Instruction::Call
|| Ins->getOpcode() == Instruction::CallBr
|| Ins->getOpcode() == Instruction::Ret
|| Ins->getOpcode() == Instruction::Store
|| Ins->getOpcode() == Instruction::Br
|| Ins->getOpcode() == Instruction::IndirectBr)
if (Ins->mayHaveSideEffects()) {
return true;
return false;
}
switch (Ins->getOpcode()) {
case Instruction::Call:
case Instruction::CallBr:
case Instruction::Ret:
case Instruction::Store:
case Instruction::Br:
case Instruction::IndirectBr:
return true;
default:
return false;
}
}
uint32_t getMaxOperandSize(Instruction *Ins) {