X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2FstgSyn%2FCoreToStg.lhs;h=31837b904362416695b1ca620058eabbcd0e5ca3;hp=519177162f9887e2e400f65a430c9c8f4ebf1f63;hb=fb38b8bab2b531ca7ac4ea28ad5b259a00e3759b;hpb=7eb7a2d93356d0031c8db33a5a9575c8a54cb853;ds=sidebyside diff --git a/compiler/stgSyn/CoreToStg.lhs b/compiler/stgSyn/CoreToStg.lhs index 5191771..31837b9 100644 --- a/compiler/stgSyn/CoreToStg.lhs +++ b/compiler/stgSyn/CoreToStg.lhs @@ -21,9 +21,6 @@ import TyCon ( isAlgTyCon ) import Id import Var ( Var, globalIdDetails, idType ) import TyCon ( isUnboxedTupleTyCon, isPrimTyCon, isFunTyCon, isHiBootTyCon ) -#ifdef ILX -import MkId ( unsafeCoerceId ) -#endif import IdInfo import DataCon import CostCentre ( noCCS ) @@ -321,16 +318,6 @@ coreToStgExpr (Note (SCC cc) expr) = coreToStgExpr expr `thenLne` ( \ (expr2, fvs, escs) -> returnLne (StgSCC cc expr2, fvs, escs) ) -#ifdef ILX --- For ILX, convert (__coerce__ to_ty from_ty e) --- into (coerce to_ty from_ty e) --- where coerce is real function -coreToStgExpr (Cast expr co) - = let (from_ty, ty_ty) = coercionKind co in - coreToStgExpr (mkApps (Var unsafeCoerceId) - [Type from_ty, Type to_ty, expr]) -#endif - coreToStgExpr (Note other_note expr) = coreToStgExpr expr