This is useful when creating ops with createOrFold method. The method returns a
Value. If you store it in a SmallVector<OpFoldResult> vector, it is still a
ConstantOp if foldable, not an Attribute. Looking into the defining op will
simplify creating mixed operands cases.
Also fix a comment where uses the method.