projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove unncessary fromIntegral calls
[ghc-hetmet.git]
/
compiler
/
nativeGen
/
RegAlloc
/
Linear
/
X86
/
FreeRegs.hs
diff --git
a/compiler/nativeGen/RegAlloc/Linear/X86/FreeRegs.hs
b/compiler/nativeGen/RegAlloc/Linear/X86/FreeRegs.hs
index
0a15e56
..
27810ff
100644
(file)
--- a/
compiler/nativeGen/RegAlloc/Linear/X86/FreeRegs.hs
+++ b/
compiler/nativeGen/RegAlloc/Linear/X86/FreeRegs.hs
@@
-47,7
+47,7
@@
getFreeRegs cls f = go f 0
allocateReg :: RealReg -> FreeRegs -> FreeRegs
allocateReg (RealRegSingle r) f
allocateReg :: RealReg -> FreeRegs -> FreeRegs
allocateReg (RealRegSingle r) f
- = f .&. complement (1 `shiftL` fromIntegral r)
+ = f .&. complement (1 `shiftL` r)
allocateReg _ _
= panic "RegAlloc.Linear.X86.FreeRegs.allocateReg: no reg"
allocateReg _ _
= panic "RegAlloc.Linear.X86.FreeRegs.allocateReg: no reg"