[llvm] 4096ef3 - [Hexagon] Consider direction hint forming dealloc_return duplex
Krzysztof Parzyszek via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 7 12:04:17 PST 2022
Author: colinl
Date: 2022-01-07T12:04:00-08:00
New Revision: 4096ef3ed70ddfc3941b43097cebd2aadc6919f5
URL: https://github.com/llvm/llvm-project/commit/4096ef3ed70ddfc3941b43097cebd2aadc6919f5
DIFF: https://github.com/llvm/llvm-project/commit/4096ef3ed70ddfc3941b43097cebd2aadc6919f5.diff
LOG: [Hexagon] Consider direction hint forming dealloc_return duplex
Added:
llvm/test/MC/Hexagon/bug24609.s
Modified:
llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCDuplexInfo.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCDuplexInfo.cpp b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCDuplexInfo.cpp
index ae1abc4678516..05410893e31e0 100644
--- a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCDuplexInfo.cpp
+++ b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCDuplexInfo.cpp
@@ -303,8 +303,6 @@ unsigned HexagonMCInstrInfo::getDuplexCandidateGroup(MCInst const &MCI) {
case Hexagon::L4_return_f:
case Hexagon::L4_return_tnew_pnt:
case Hexagon::L4_return_fnew_pnt:
- case Hexagon::L4_return_tnew_pt:
- case Hexagon::L4_return_fnew_pt:
// [if ([!]p0[.new])] dealloc_return
SrcReg = MCI.getOperand(1).getReg();
if (Hexagon::P0 == SrcReg) {
diff --git a/llvm/test/MC/Hexagon/bug24609.s b/llvm/test/MC/Hexagon/bug24609.s
new file mode 100644
index 0000000000000..90cf05391dd3f
--- /dev/null
+++ b/llvm/test/MC/Hexagon/bug24609.s
@@ -0,0 +1,6 @@
+# RUN: llvm-mc -arch=hexagon -filetype=obj %s | llvm-objdump -d - | FileCheck %s
+
+{ p0 = cmp.eq(r0,#0) ; if (p0.new) dealloc_return:t }
+
+# CHECK: { p0 = cmp.eq(r0,#0)
+# CHECK: if (p0.new) dealloc_return:t }
More information about the llvm-commits
mailing list