Properly use get_irn_pinned/set_irn_pinned as bool value instead of comparing setting the ir_op enum values.