RVM
  1. RVM
  2. RVM-725

Increase command line options for tuning opt compiler behaviour

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.1
    • Fix Version/s: 3.1.0
    • Component/s: Compiler: Optimizing
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Something that has been of interest to at least 2 researchers is adding command line options that allow more configuration of the opt compiler behaviour. Examples of where these options should be improved include:

      • local expression folding option (currently always disabled)
      • the threshold at which we switch from a tableswitch to a lookupswitch (currently 8)

      an extension to this JIRA would be to consider the naming convention for opt compiler options

        Activity

        Hide
        David Grove added a comment -

        Ian. I'm making a pass through deleting the options that aren't semantically sound.

        Show
        David Grove added a comment - Ian. I'm making a pass through deleting the options that aren't semantically sound.
        Hide
        Ian Rogers added a comment -

        Thanks Dave, if you can let me know when you're done I'll pick up resolving this issue. I guess we can at least comment the options that are unsound from the command line.

        Show
        Ian Rogers added a comment - Thanks Dave, if you can let me know when you're done I'll pick up resolving this issue. I guess we can at least comment the options that are unsound from the command line.
        Hide
        David Grove added a comment -

        Did my pass in r15223.

        There are still probably some unused options, but I think I've at least got rid of all the unsound ones.

        Show
        David Grove added a comment - Did my pass in r15223. There are still probably some unused options, but I think I've at least got rid of all the unsound ones.
        Hide
        Ian Rogers added a comment -

        r15226 makes naming more regular, adds options for local expression folding and the max size of tableswitch where we don't generate an if-then-else.

        r15227 introduces new options to control bonuses given to reduce the method size when particular arguments are passed to a method being considered for inlining.

        Show
        Ian Rogers added a comment - r15226 makes naming more regular, adds options for local expression folding and the max size of tableswitch where we don't generate an if-then-else. r15227 introduces new options to control bonuses given to reduce the method size when particular arguments are passed to a method being considered for inlining.
        Hide
        David Grove added a comment -

        Ian did some work on this a while ago. More could be done of course, but my inclination is to close it now and let people open request for specific features that they think should be command line tunable.

        Show
        David Grove added a comment - Ian did some work on this a while ago. More could be done of course, but my inclination is to close it now and let people open request for specific features that they think should be command line tunable.

          People

          • Assignee:
            Ian Rogers
            Reporter:
            Ian Rogers
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: