Skip to content

Conversation

@topperc
Copy link
Collaborator

@topperc topperc commented May 21, 2025

No description provided.

@llvmbot
Copy link
Member

llvmbot commented May 21, 2025

@llvm/pr-subscribers-backend-risc-v

Author: Craig Topper (topperc)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/140970.diff

1 Files Affected:

  • (modified) llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td (+4-4)
diff --git a/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td b/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
index 6cbc76f41f8db..e35c98e95705e 100644
--- a/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
+++ b/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
@@ -6733,9 +6733,9 @@ let mayLoad = 0, mayStore = 0, hasSideEffects = 0 in {
     Sched<[WriteVMovXS, ReadVMovXS]>,
     RISCVVPseudo;
   let HasVLOp = 1, HasSEWOp = 1, BaseInstr = VMV_S_X, isReMaterializable = 1,
-      Constraints = "$rd = $rs1" in
+      Constraints = "$rd = $passthru" in
   def PseudoVMV_S_X: Pseudo<(outs VR:$rd),
-                            (ins VR:$rs1, GPR:$rs2, AVL:$vl, sew:$sew),
+                            (ins VR:$passthru, GPR:$rs1, AVL:$vl, sew:$sew),
                             []>,
     Sched<[WriteVMovSX, ReadVMovSX_V, ReadVMovSX_X]>,
     RISCVVPseudo;
@@ -6756,10 +6756,10 @@ let mayLoad = 0, mayStore = 0, hasSideEffects = 0 in {
       Sched<[WriteVMovFS, ReadVMovFS]>,
       RISCVVPseudo;
     let HasVLOp = 1, HasSEWOp = 1, BaseInstr = VFMV_S_F, isReMaterializable = 1,
-        Constraints = "$rd = $rs1" in
+        Constraints = "$rd = $passthru" in
     def "PseudoVFMV_S_" # f.FX :
       Pseudo<(outs VR:$rd),
-             (ins VR:$rs1, f.fprclass:$rs2, AVL:$vl, sew:$sew),
+             (ins VR:$passthru, f.fprclass:$rs1, AVL:$vl, sew:$sew),
              []>,
       Sched<[WriteVMovSF, ReadVMovSF_V, ReadVMovSF_F]>,
       RISCVVPseudo;

Copy link
Member

@mshockwave mshockwave left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@topperc topperc merged commit 6ff7a3c into llvm:main May 22, 2025
11 of 13 checks passed
@topperc topperc deleted the pr/pseudo-names branch May 22, 2025 00:40
@llvm-ci
Copy link
Collaborator

llvm-ci commented May 22, 2025

LLVM Buildbot has detected a new failure on builder llvm-x86_64-debian-dylib running on gribozavr4 while building llvm at step 8 "test-build-unified-tree-check-lld".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/60/builds/28101

Here is the relevant piece of the build log for the reference
Step 8 (test-build-unified-tree-check-lld) failure: test (failure)
******************** TEST 'lld :: COFF/lto-cache-errors.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/b/1/llvm-x86_64-debian-dylib/build/bin/opt -module-hash -module-summary /b/1/llvm-x86_64-debian-dylib/llvm-project/lld/test/COFF/lto-cache-errors.ll -o /b/1/llvm-x86_64-debian-dylib/build/tools/lld/test/COFF/Output/lto-cache-errors.ll.tmp.o # RUN: at line 5
+ /b/1/llvm-x86_64-debian-dylib/build/bin/opt -module-hash -module-summary /b/1/llvm-x86_64-debian-dylib/llvm-project/lld/test/COFF/lto-cache-errors.ll -o /b/1/llvm-x86_64-debian-dylib/build/tools/lld/test/COFF/Output/lto-cache-errors.ll.tmp.o
/b/1/llvm-x86_64-debian-dylib/build/bin/opt -module-hash -module-summary /b/1/llvm-x86_64-debian-dylib/llvm-project/lld/test/COFF/Inputs/lto-cache.ll -o /b/1/llvm-x86_64-debian-dylib/build/tools/lld/test/COFF/Output/lto-cache-errors.ll.tmp2.o # RUN: at line 6
+ /b/1/llvm-x86_64-debian-dylib/build/bin/opt -module-hash -module-summary /b/1/llvm-x86_64-debian-dylib/llvm-project/lld/test/COFF/Inputs/lto-cache.ll -o /b/1/llvm-x86_64-debian-dylib/build/tools/lld/test/COFF/Output/lto-cache-errors.ll.tmp2.o
rm -Rf /b/1/llvm-x86_64-debian-dylib/build/tools/lld/test/COFF/Output/lto-cache-errors.ll.tmp.cache && mkdir /b/1/llvm-x86_64-debian-dylib/build/tools/lld/test/COFF/Output/lto-cache-errors.ll.tmp.cache # RUN: at line 7
+ rm -Rf /b/1/llvm-x86_64-debian-dylib/build/tools/lld/test/COFF/Output/lto-cache-errors.ll.tmp.cache
+ mkdir /b/1/llvm-x86_64-debian-dylib/build/tools/lld/test/COFF/Output/lto-cache-errors.ll.tmp.cache
chmod 444 /b/1/llvm-x86_64-debian-dylib/build/tools/lld/test/COFF/Output/lto-cache-errors.ll.tmp.cache # RUN: at line 8
+ chmod 444 /b/1/llvm-x86_64-debian-dylib/build/tools/lld/test/COFF/Output/lto-cache-errors.ll.tmp.cache
not /b/1/llvm-x86_64-debian-dylib/build/bin/lld-link /lldltocache:/b/1/llvm-x86_64-debian-dylib/build/tools/lld/test/COFF/Output/lto-cache-errors.ll.tmp.cache/nonexistant/ /out:/b/1/llvm-x86_64-debian-dylib/build/tools/lld/test/COFF/Output/lto-cache-errors.ll.tmp3 /entry:main /b/1/llvm-x86_64-debian-dylib/build/tools/lld/test/COFF/Output/lto-cache-errors.ll.tmp2.o /b/1/llvm-x86_64-debian-dylib/build/tools/lld/test/COFF/Output/lto-cache-errors.ll.tmp.o 2>&1 | /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/lld/test/COFF/lto-cache-errors.ll # RUN: at line 11
+ not /b/1/llvm-x86_64-debian-dylib/build/bin/lld-link /lldltocache:/b/1/llvm-x86_64-debian-dylib/build/tools/lld/test/COFF/Output/lto-cache-errors.ll.tmp.cache/nonexistant/ /out:/b/1/llvm-x86_64-debian-dylib/build/tools/lld/test/COFF/Output/lto-cache-errors.ll.tmp3 /entry:main /b/1/llvm-x86_64-debian-dylib/build/tools/lld/test/COFF/Output/lto-cache-errors.ll.tmp2.o /b/1/llvm-x86_64-debian-dylib/build/tools/lld/test/COFF/Output/lto-cache-errors.ll.tmp.o
+ /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/lld/test/COFF/lto-cache-errors.ll

--

********************


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants