Summary: CmpP could be optimized out if it compares new allocated objects. Reviewed-by: jrose, never, rasbold