Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-3637

Merge codegen constant replacement mechanisms

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Later
    • Impala 2.6.0
    • None
    • Backend

    Description

      We currently have two similar way to replace constants in codegen'd code: Expr::GetConstant() and LlvmCodeGen::ReplaceCallSitesWithBoolConst(). We should merge them so that we have a single mechanism with the functionality of both.

      E.g.
      A version that takes a map where the key is a symbol and the value is a constant, or a vector of constants:

      ReplaceCallSitesWithConstants(Function* map, <string, ConstantInfo>*)

      We could then avoid the expensive Expr::GetConstant() call on the interpreted path.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tarmstrong Tim Armstrong
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: