<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/59538>59538</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            `amdgpu-isel` appears to be the name for SelectionDAGISel for some targets?
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            test-suite,
            backend:AMDGPU,
            llvm:codegen
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          nickdesaulniers
      </td>
    </tr>
</table>

<pre>
    I'm trying to write a test for some changes I'm making to SelectionDAGBuilder. The `RUN:` lines of my `FileCheck` tests on LLVM IR have `llc -mtriple=aarch64-linux-gnu /tmp/x.ll -stop-after=finalize-isel -o - -global-isel=0 -fast-isel=0`.

To isolate my test to testing isel, if I add: `-start-before=finalize-isel`, I no longer get any codegen from `llc`. It still prints the input IR and yaml for MIR, but the MIR output is gone.

If I replace `-start-before=finalize-isel` with `-print-before-all`, I see:

`# *** IR Dump Before AArch64 Instruction Selection (amdgpu-isel) ***:`

(huh, why is `amdgpu-isel` in there?)

On a hunch, testing `-start-before=amdgpu-isel` does what I'd have expected from `-start-before=finalize-isel`.

Expected:
`llc -mtriple=aarch64-linux-gnu /tmp/x.ll -start-before=finalize-isel -stop-after=finalize-isel -o -`
Actual:
`llc -mtriple=aarch64-linux-gnu /tmp/x.ll -start-before=amdgpu-isel -stop-after=finalize-isel -o -`

(Though, adding `-print-before-all` to Expected above shows what looks like `amdgpu-isel`, then `aarch64-local-dynamic-tls-cleanup`, then `finalize-isel` being run).

I see the same issue if I change the target triple to `-mtriple=x86_64-linux-gnu` as well, so not specific to aarch64 I think. So not tagging this as related to globalisel (since I don't want to test globalisel anyways).

cc @arsenm 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysVd9v2zYQ_mvol4MMiYrl-MEPbj0XApptSNu9DifyJHGmSIGk6nh__UDKiZ20Q4thQBD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