[llvm] [X86] combineCMov - fold CMOV(LOAD(PTR0),LOAD(PTR1)) -> LOAD(CMOV(PTR0,PTR1)) (PR #182084)

via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 18 11:00:07 PST 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 131005 tests passed
* 2946 tests skipped
* 1 test failed

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

### LLVM
<details>
<summary>LLVM.CodeGen/Generic/2007-01-15-LoadSelectCycle.ll</summary>

```
Exit Code: 3221225501

Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\llc.exe < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\Generic\2007-01-15-LoadSelectCycle.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe'
# .---command stderr------------
# | Overran sorted position:
# | t17: ch,glue = callseq_end t16, TargetConstant:i64<32>, TargetConstant:i64<0>, t16:1
# |   t16: ch,glue = X86ISD::CALL t13, TargetGlobalAddress:i64<ptr @foo> 0, RegisterMask:Untyped
# | Checking if this is due to cycles
# | Detected cycle in SelectionDAG
# | Offending node:
# | t19: i8,ch,glue = CopyFromReg t17, Register:i8 $al, t17:1
# |   t17: ch,glue = callseq_end t16, TargetConstant:i64<32>, TargetConstant:i64<0>, t16:1
# |     t16: ch,glue = X86ISD::CALL t13, TargetGlobalAddress:i64<ptr @foo> 0, RegisterMask:Untyped
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# | Stack dump:
# | 0.	Program arguments: c:\\_work\\llvm-project\\llvm-project\\build\\bin\\llc.exe
# | 1.	Running pass 'Function Pass Manager' on module '<stdin>'.
# | 2.	Running pass 'X86 DAG->DAG Instruction Selection' on function '@test'
# | Exception Code: 0xC000001D
# |  #0 0x00007ff6a5460266 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x2cd0266)
# |  #1 0x00007fff3f70bb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# |  #2 0x00007fff3f70cad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# |  #3 0x00007ff6a439ba7a (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x1c0ba7a)
# |  #4 0x00007ff6a439b972 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x1c0b972)
# |  #5 0x00007ff6a439b972 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x1c0b972)
# |  #6 0x00007ff6a439b972 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x1c0b972)
# |  #7 0x00007ff6a439b972 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x1c0b972)
# |  #8 0x00007ff6a439b972 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x1c0b972)
# |  #9 0x00007ff6a439b972 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x1c0b972)
# | #10 0x00007ff6a439b972 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x1c0b972)
# | #11 0x00007ff6a439b972 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x1c0b972)
# | #12 0x00007ff6a439b972 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x1c0b972)
# | #13 0x00007ff6a439b972 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x1c0b972)
# | #14 0x00007ff6a4391108 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x1c01108)
# | #15 0x00007ff6a4390ef9 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x1c00ef9)
# | #16 0x00007ff6a2e3ee30 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x6aee30)
# | #17 0x00007ff6a2e3dd85 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x6add85)
# | #18 0x00007ff6a2e3b97e (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x6ab97e)
# | #19 0x00007ff6a2e3af45 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x6aaf45)
# | #20 0x00007ff6a2e36ecc (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x6a6ecc)
# | #21 0x00007ff6a459861c (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x1e0861c)
# | #22 0x00007ff6a2e33fb4 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x6a3fb4)
# | #23 0x00007ff6a31d4573 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0xa44573)
# | #24 0x00007ff6a2c447e2 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4b47e2)
# | #25 0x00007ff6a2c4d8bd (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4bd8bd)
# | #26 0x00007ff6a2c454c1 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4b54c1)
# | #27 0x00007ff6a2797ab7 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x7ab7)
# | #28 0x00007ff6a2794d36 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4d36)
# | #29 0x00007ff6a6f289c0 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x47989c0)
# | #30 0x00007fff42454cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #31 0x00007fff5153edcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
# `-----------------------------
# error: command failed with exit status: 0xc000001d

--

```
</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/182084


More information about the llvm-commits mailing list