Skip to content

Commit 6d3a36b

Browse files
committed
Tuple operations can be wop
1 parent 8e7f7bf commit 6d3a36b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/comp/SimCCBlock.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,8 @@ adjustInstQuals id =
523523
-- check if an aexpr is just a var id, or other situation not to deal by wop
524524
hasWop :: AExpr -> Bool
525525
hasWop (APrim { aprim_prim = p }) = (p /= PrimIf)
526+
hasWop (ATuple _ _) = True
527+
hasWop (ATupleSel _ _ _) = True
526528
hasWop _ = False
527529

528530
-- ---------------------

0 commit comments

Comments
 (0)