[all-commits] [llvm/llvm-project] 4a69fd: [LoongArch][NFC] Precommit test for D153120 (the f...
Lu Weining via All-commits
all-commits at lists.llvm.org
Fri Jun 16 19:56:13 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4a69fd62699e9cb3d80d83796826a1f5e2a9ef9e
https://github.com/llvm/llvm-project/commit/4a69fd62699e9cb3d80d83796826a1f5e2a9ef9e
Author: Weining Lu <luweining at loongson.cn>
Date: 2023-06-17 (Sat, 17 Jun 2023)
Changed paths:
M llvm/test/CodeGen/LoongArch/intrinsic-la64.ll
M llvm/test/CodeGen/LoongArch/intrinsic.ll
Log Message:
-----------
[LoongArch][NFC] Precommit test for D153120 (the fix of CSRWR and CSRXCHG)
Reviewed By: xry111
Differential Revision: https://reviews.llvm.org/D153119
Commit: c216ce0ef84063f57c7324df21b71cd5c78cfa81
https://github.com/llvm/llvm-project/commit/c216ce0ef84063f57c7324df21b71cd5c78cfa81
Author: Weining Lu <luweining at loongson.cn>
Date: 2023-06-17 (Sat, 17 Jun 2023)
Changed paths:
M llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
M llvm/lib/Target/LoongArch/LoongArchISelLowering.h
M llvm/test/CodeGen/LoongArch/intrinsic-la64.ll
M llvm/test/CodeGen/LoongArch/intrinsic.ll
Log Message:
-----------
[LoongArch] Fix handling of the chain of CSRWR and CSRXCHG nodes
`LoongArchISD::CSRWR` has two results. The first is the result of
`loongarch.csrwr.[wd]` intrinsic and the second is the chain. But
currently the chain is not processed correctly when creating this
node, resulting in the `csrwr` instruction being optimized out when
the result is not used by anyone [1]. `LoongArchISD::CSRXCHG` has
the same issue.
This patch addresses this issue.
[1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/loongarch/include/asm/loongarch.h?h=v6.4-rc6#n219
Reviewed By: hev
Differential Revision: https://reviews.llvm.org/D153120
Compare: https://github.com/llvm/llvm-project/compare/120cd5aafca2...c216ce0ef840
More information about the All-commits
mailing list