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

Codegen does not generate target-specific machine code for cross-compiled functions

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Impala 2.8.0
    • Fix Version/s: Impala 2.9.0
    • Component/s: Backend
    • Labels:

      Description

      I discovered this while playing around with different inlining settings. It turns out that clang's LLVM IR output has hidden "target-cpu" and "target-features" function attributes that force the functions to be compiled for generic x86-64 machines (since that is what we asked clang to compile for). These are not overridden at any point.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kwho Michael Ho
                Reporter:
                tarmstrong Tim Armstrong
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: