X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2FstgSyn%2FCoreToStg.lhs;h=c5de5edc4dcd2acc13265c0342623e3b84567aa0;hb=aae367819798b0883de61ea4d91ea2c47452884e;hp=f97ea1b6aa36465a5a24dfba9e42149b7102f3a5;hpb=0755a7d9a4ba807d3a5d47ac84224bd146882a08;p=ghc-hetmet.git diff --git a/ghc/compiler/stgSyn/CoreToStg.lhs b/ghc/compiler/stgSyn/CoreToStg.lhs index f97ea1b..c5de5ed 100644 --- a/ghc/compiler/stgSyn/CoreToStg.lhs +++ b/ghc/compiler/stgSyn/CoreToStg.lhs @@ -437,16 +437,6 @@ coreExprToStgFloat env expr@(Con (PrimOp (CCallOp (Right _) a b c)) args) let con' = PrimOp (CCallOp (Right u) a b c) in returnUs (binds, StgCon con' stg_atoms (coreExprType expr)) --- for dataToTag#, we need to make sure the argument is evaluated first. -coreExprToStgFloat env expr@(Con op@(PrimOp DataToTagOp) [Type ty, a]) - = newStgVar ty `thenUs` \ v -> - coreArgToStg env a `thenUs` \ (binds, arg) -> - let e = case arg of - StgVarArg v -> StgApp v [] - StgConArg c -> StgCon c [] (coreExprType a) - in - returnUs (binds ++ [CaseBind v e], StgCon op [StgVarArg v] (coreExprType expr)) - coreExprToStgFloat env expr@(Con con args) = coreArgsToStg env args `thenUs` \ (binds, stg_atoms) -> returnUs (binds, StgCon con stg_atoms (coreExprType expr))