improve emitting IR for tuple comparison