diff options
author | Simon Marlow <marlowsd@gmail.com> | 2018-03-19 11:57:27 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2018-03-19 12:05:11 -0400 |
commit | 39c740636dfc7ce4b5590fa60adc6d5ecf5a79b6 (patch) | |
tree | ab3f831c1e0935c36067ccb444835f712e099bcb /compiler/cmm/CmmOpt.hs | |
parent | 3d378d983a28d3650220180e1524c63fb2f4c747 (diff) | |
download | haskell-39c740636dfc7ce4b5590fa60adc6d5ecf5a79b6.tar.gz |
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
Diffstat (limited to 'compiler/cmm/CmmOpt.hs')
-rw-r--r-- | compiler/cmm/CmmOpt.hs | 8 |
1 files changed, 0 insertions, 8 deletions
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 |