Teach simple_gvn that iconst.i32 is not congruent to iconst.i64.

This commit is contained in:
Dan Gohman
2017-08-30 14:33:54 -07:00
parent 9ea5226b89
commit 3532c3533a
3 changed files with 19 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ use std::fmt::{self, Display, Debug, Formatter};
///
/// SIMD vector types have power-of-two lanes, up to 256. Lanes can be any int/float/bool type.
///
#[derive(Copy, Clone, PartialEq, Eq)]
#[derive(Copy, Clone, PartialEq, Eq, Hash)]
pub struct Type(u8);
/// No type. Used for functions without a return value. Can't be loaded or stored. Can't be part of