From 39c740636dfc7ce4b5590fa60adc6d5ecf5a79b6 Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Mon, 19 Mar 2018 11:57:27 -0400 Subject: Be more selective in which conditionals we invert Test Plan: validate Reviewers: bgamari, AndreasK, erikd Reviewed By: AndreasK Subscribers: rwbarton, thomie, carter Differential Revision: https://phabricator.haskell.org/D4398 --- compiler/cmm/CmmOpt.hs | 8 -------- 1 file changed, 8 deletions(-) (limited to 'compiler/cmm/CmmOpt.hs') diff --git a/compiler/cmm/CmmOpt.hs b/compiler/cmm/CmmOpt.hs index 6b4d792122..e837d29783 100644 --- a/compiler/cmm/CmmOpt.hs +++ b/compiler/cmm/CmmOpt.hs @@ -422,14 +422,6 @@ That's what the constant-folding operations on comparison operators do above. -- ----------------------------------------------------------------------------- -- Utils -isLit :: CmmExpr -> Bool -isLit (CmmLit _) = True -isLit _ = False - -isComparisonExpr :: CmmExpr -> Bool -isComparisonExpr (CmmMachOp op _) = isComparisonMachOp op -isComparisonExpr _ = False - isPicReg :: CmmExpr -> Bool isPicReg (CmmReg (CmmGlobal PicBaseReg)) = True isPicReg _ = False -- cgit v1.2.1