mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
[InlineCost] Fix a couple comments. NFC
Replace "unary operator" with "unary instruction" in visitUnaryInstruction since we now have a UnaryOperator class which might needs its own visit function. Fix a copy/paste in visitCastInst that appears to have been copied from visitPtrToInt. llvm-svn: 361794
This commit is contained in:
parent
80dfad1fb5
commit
b96b27b66a
@ -708,7 +708,7 @@ bool CallAnalyzer::visitIntToPtr(IntToPtrInst &I) {
|
||||
}
|
||||
|
||||
bool CallAnalyzer::visitCastInst(CastInst &I) {
|
||||
// Propagate constants through ptrtoint.
|
||||
// Propagate constants through casts.
|
||||
if (simplifyInstruction(I, [&](SmallVectorImpl<Constant *> &COps) {
|
||||
return ConstantExpr::getCast(I.getOpcode(), COps[0], I.getType());
|
||||
}))
|
||||
@ -744,7 +744,7 @@ bool CallAnalyzer::visitUnaryInstruction(UnaryInstruction &I) {
|
||||
}))
|
||||
return true;
|
||||
|
||||
// Disable any SROA on the argument to arbitrary unary operators.
|
||||
// Disable any SROA on the argument to arbitrary unary instructions.
|
||||
disableSROA(Operand);
|
||||
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user