Add comment that was missed in previous commit.

This commit is contained in:
John Kessenich 2015-10-13 10:55:08 -06:00
parent 716312771c
commit f685df8c16

View File

@ -500,6 +500,9 @@ Id Builder::findScalarConstant(Op typeClass, Id typeId, unsigned v1, unsigned v2
return 0; return 0;
} }
// Return true if consuming 'opcode' means consuming a constant.
// "constant" here means after final transform to executable code,
// the value consumed will be a constant, so includes specialization.
bool Builder::isConstantOpCode(Op opcode) const bool Builder::isConstantOpCode(Op opcode) const
{ {
switch (opcode) { switch (opcode) {