aboutsummaryrefslogtreecommitdiff
path: root/src/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd')
-rw-r--r--src/cmd/compile/internal/ssa/regalloc.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/cmd/compile/internal/ssa/regalloc.go b/src/cmd/compile/internal/ssa/regalloc.go
index 15f6412a85..c104a36888 100644
--- a/src/cmd/compile/internal/ssa/regalloc.go
+++ b/src/cmd/compile/internal/ssa/regalloc.go
@@ -605,12 +605,6 @@ func (s *regAllocState) init(f *Func) {
// Leaf functions don't save/restore the link register.
s.allocatable &^= 1 << uint(s.f.Config.LinkReg)
}
- if s.f.Config.arch == "arm" && objabi.GOARM == 5 {
- // On ARMv5 we insert softfloat calls at each FP instruction.
- // This clobbers LR almost everywhere. Disable allocating LR
- // on ARMv5.
- s.allocatable &^= 1 << uint(s.f.Config.LinkReg)
- }
}
if s.f.Config.ctxt.Flag_dynlink {
switch s.f.Config.arch {