Project

General

Profile

Actions

Bug #1357

closed

Fixing variables into specific CPU registers deemed overrated & may disturb compilers' optimizers

Added by roberto (Ollivier Robert) about 15 years ago. Updated about 13 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 1.9.2dev (2009-03-31) [i386-darwin9.6.0]
Backport:
[ruby-core:23132]

Description

=begin
I do not think that fixing specific variable into CPU registers is really reflected in performance gains (benchmarks welcome!). It will also generally disturb compilers' handling of optimization (especially on register-starved CPUs like IA-32/i386) and may generate less efficient code. Remove the i386/amd64-specific code.

As a side-effect, it enables successful compilation with recent versions of clang/llvm.
=end


Files

reg.diff (401 Bytes) reg.diff Patch to remove i386/amd64 register assignments. roberto (Ollivier Robert), 04/06/2009 05:43 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0