Skip to content
Snippets Groups Projects

More rodinia optimization

Merged rarbore2 requested to merge rodinia_opt2 into main
Files
16
+ 14
3
@@ -1048,9 +1048,20 @@ impl Constant {
}
}
/*
* Useful for GVN.
*/
pub fn is_false(&self) -> bool {
match self {
Constant::Boolean(false) => true,
_ => false,
}
}
pub fn is_true(&self) -> bool {
match self {
Constant::Boolean(true) => true,
_ => false,
}
}
pub fn is_zero(&self) -> bool {
match self {
Constant::Integer8(0) => true,
Loading