From fd03054a5dac582ea1cbe8745c9b4852a7c9c686 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Mon, 5 Feb 2018 20:48:57 -0800 Subject: Note isAtomic in loads and stores (#1406) * check isAtomic in comparisons * hash isAtomic --- src/ir/ExpressionAnalyzer.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ir/ExpressionAnalyzer.cpp') diff --git a/src/ir/ExpressionAnalyzer.cpp b/src/ir/ExpressionAnalyzer.cpp index 748b5a0af..5368c25f6 100644 --- a/src/ir/ExpressionAnalyzer.cpp +++ b/src/ir/ExpressionAnalyzer.cpp @@ -214,6 +214,7 @@ bool ExpressionAnalyzer::flexibleEqual(Expression* left, Expression* right, Expr } CHECK(Load, offset); CHECK(Load, align); + CHECK(Load, isAtomic); PUSH(Load, ptr); break; } @@ -222,6 +223,7 @@ bool ExpressionAnalyzer::flexibleEqual(Expression* left, Expression* right, Expr CHECK(Store, offset); CHECK(Store, align); CHECK(Store, valueType); + CHECK(Store, isAtomic); PUSH(Store, ptr); PUSH(Store, value); break; @@ -463,6 +465,7 @@ uint32_t ExpressionAnalyzer::hash(Expression* curr) { } HASH(Load, offset); HASH(Load, align); + HASH(Load, isAtomic); PUSH(Load, ptr); break; } @@ -471,6 +474,7 @@ uint32_t ExpressionAnalyzer::hash(Expression* curr) { HASH(Store, offset); HASH(Store, align); HASH(Store, valueType); + HASH(Store, isAtomic); PUSH(Store, ptr); PUSH(Store, value); break; -- cgit v1.2.3