Add expensive check that Uses, Defs are same for entries in memory folding table.
MemFolding could not change the Uses/Defs.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| llvm/utils/TableGen/X86FoldTablesEmitter.cpp | ||
|---|---|---|
| 123 | Sure. | |
| llvm/utils/TableGen/X86FoldTablesEmitter.cpp | ||
|---|---|---|
| 115 | Replace LHS with Reg and RHS with Mem. | |
| llvm/utils/TableGen/X86FoldTablesEmitter.cpp | ||
|---|---|---|
| 111 | Function name should not capitalize | |
| llvm/utils/TableGen/X86FoldTablesEmitter.cpp | ||
|---|---|---|
| 112 | , -> and This function is about entry only, not about  the table. So I suggest | |
| 120 | Drop llvm::? | |
| 619–620 | The logic here does not show anything about Uses or Defs. And it's self-explained, we can remove the comments. | |
| llvm/utils/TableGen/X86FoldTablesEmitter.cpp | ||
|---|---|---|
| 120 | drop namespace llvm? | |
| llvm/utils/TableGen/X86FoldTablesEmitter.cpp | ||
|---|---|---|
| 120 | Given the code for Debug build only, why don't use assert directly? | |
| llvm/utils/TableGen/X86FoldTablesEmitter.cpp | ||
|---|---|---|
| 120 | How to include RegInstRec.getName() and MemInstRec.getName() in assertion message? | |
| llvm/utils/TableGen/X86FoldTablesEmitter.cpp | ||
|---|---|---|
| 120 | Right, I missed them :) | |
Function name should not capitalize