[llvm] [GlobalISel] Rewrite binop_left_to_zero using MIR Patterns (PR #177924)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 29 09:27:18 PST 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 168815 tests passed
* 3006 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### LLVM
<details>
<summary>LLVM.CodeGen/AMDGPU/GlobalISel/combine-shl-from-extend-narrow.postlegal.mir</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=amdgcn-mesa-mesa3d -mcpu=tahiti -run-pass=amdgpu-postlegalizer-combiner -verify-machineinstrs /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/GlobalISel/combine-shl-from-extend-narrow.postlegal.mir -o - | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=GFX6  /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/GlobalISel/combine-shl-from-extend-narrow.postlegal.mir
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=amdgcn-mesa-mesa3d -mcpu=tahiti -run-pass=amdgpu-postlegalizer-combiner -verify-machineinstrs /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/GlobalISel/combine-shl-from-extend-narrow.postlegal.mir -o -
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=GFX6 /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/GlobalISel/combine-shl-from-extend-narrow.postlegal.mir
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/GlobalISel/combine-shl-from-extend-narrow.postlegal.mir:351:15: error: GFX6-NEXT: expected string not found in input
# |  ; GFX6-NEXT: %extend:_(s32) = G_CONSTANT i32 0
# |               ^
# | <stdin>:1236:2: note: scanning from here
# |  
# |  ^
# | <stdin>:1237:2: note: possible intended match here
# |  %shl:_(s32) = G_CONSTANT i32 0
# |  ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/GlobalISel/combine-shl-from-extend-narrow.postlegal.mir
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             .
# |             .
# |             .
# |          1231:  numKernargPreloadSGPRs: 0 
# |          1232:  isWholeWaveFunction: false 
# |          1233: body: | 
# |          1234:  bb.0: 
# |          1235:  liveins: $vgpr0 
# |          1236:   
# | next:351'0      X error: no match found
# |          1237:  %shl:_(s32) = G_CONSTANT i32 0 
# | next:351'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:351'1      ?                               possible intended match
# |          1238:  $vgpr0 = COPY %shl(s32) 
# | next:351'0     ~~~~~~~~~~~~~~~~~~~~~~~~~
# |          1239: ... 
# | next:351'0     ~~~~
# |          1240: --- 
# | next:351'0     ~~~~
# |          1241: name: do_not_shl_v2s32_zero_by_16_from_zext_v2s16 
# | next:351'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |          1242: alignment: 1 
# |             .
# |             .
# |             .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

https://github.com/llvm/llvm-project/pull/177924


More information about the llvm-commits mailing list