forked from OSchip/llvm-project
parent
811da0efbc
commit
4c7d094451
|
@ -1171,7 +1171,7 @@ int X86TTIImpl::getIntImmCost(const APInt &Imm, Type *Ty) {
|
|||
int64_t Val = Tmp.getSExtValue();
|
||||
Cost += getIntImmCost(Val);
|
||||
}
|
||||
// We need at least one instruction to materialze the constant.
|
||||
// We need at least one instruction to materialize the constant.
|
||||
return std::max(1, Cost);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue