[llvm] 4d21497 - [X86] Remove TB_NO_REVERSE for 2 memory folding entries
Shengchen Kan via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 6 02:21:18 PDT 2022
Author: Shengchen Kan
Date: 2022-04-06T17:21:12+08:00
New Revision: 4d2149700618553eb28a8bc6b74664e4ba6aca65
URL: https://github.com/llvm/llvm-project/commit/4d2149700618553eb28a8bc6b74664e4ba6aca65
DIFF: https://github.com/llvm/llvm-project/commit/4d2149700618553eb28a8bc6b74664e4ba6aca65.diff
LOG: [X86] Remove TB_NO_REVERSE for 2 memory folding entries
```
X86::MMX_MOVD64from64rr -> X86::MMX_MOVQ64mr
X86::MMX_MOVD64grr -> X86::MMX_MOVD64mr
```
These two entries were added in llvm-svn: 372770.
I think these two should be reversable.
Reviewed By: RKSimon, pengfei
Differential Revision: https://reviews.llvm.org/D122217
Added:
Modified:
llvm/lib/Target/X86/X86InstrFoldTables.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86InstrFoldTables.cpp b/llvm/lib/Target/X86/X86InstrFoldTables.cpp
index b8dff70f96128..27220a8d4d998 100644
--- a/llvm/lib/Target/X86/X86InstrFoldTables.cpp
+++ b/llvm/lib/Target/X86/X86InstrFoldTables.cpp
@@ -292,8 +292,8 @@ static const X86MemoryFoldTableEntry MemoryFoldTable0[] = {
{ X86::JMP32r_NT, X86::JMP32m_NT, TB_FOLDED_LOAD },
{ X86::JMP64r, X86::JMP64m, TB_FOLDED_LOAD },
{ X86::JMP64r_NT, X86::JMP64m_NT, TB_FOLDED_LOAD },
- { X86::MMX_MOVD64from64rr, X86::MMX_MOVQ64mr, TB_FOLDED_STORE | TB_NO_REVERSE },
- { X86::MMX_MOVD64grr, X86::MMX_MOVD64mr, TB_FOLDED_STORE | TB_NO_REVERSE },
+ { X86::MMX_MOVD64from64rr, X86::MMX_MOVQ64mr, TB_FOLDED_STORE },
+ { X86::MMX_MOVD64grr, X86::MMX_MOVD64mr, TB_FOLDED_STORE },
{ X86::MOV16ri, X86::MOV16mi, TB_FOLDED_STORE },
{ X86::MOV16rr, X86::MOV16mr, TB_FOLDED_STORE },
{ X86::MOV32ri, X86::MOV32mi, TB_FOLDED_STORE },
More information about the llvm-commits
mailing list