add runtime assert for PerformPred

Signed-off-by: xiehuc <xiehuc@gmail.com>