mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
Micro-optimize this, to speed up this hotspot in debug builds a little.
llvm-svn: 105544
This commit is contained in:
parent
044a968609
commit
e4676a62de
@ -1168,9 +1168,9 @@ const SCEV *ScalarEvolution::getAddExpr(SmallVectorImpl<const SCEV *> &Ops,
|
||||
assert(!Ops.empty() && "Cannot get empty add!");
|
||||
if (Ops.size() == 1) return Ops[0];
|
||||
#ifndef NDEBUG
|
||||
const Type *ETy = getEffectiveSCEVType(Ops[0]->getType());
|
||||
for (unsigned i = 1, e = Ops.size(); i != e; ++i)
|
||||
assert(getEffectiveSCEVType(Ops[i]->getType()) ==
|
||||
getEffectiveSCEVType(Ops[0]->getType()) &&
|
||||
assert(getEffectiveSCEVType(Ops[i]->getType()) == ETy &&
|
||||
"SCEVAddExpr operand types don't match!");
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user