Skip to content

Commit 8d6b7ef

Browse files
committed
Remove some unwanted changes.
1 parent 87f856a commit 8d6b7ef

File tree

3 files changed

+2
-15
lines changed

3 files changed

+2
-15
lines changed

llvm/include/llvm/CodeGen/MachineBasicBlock.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,6 @@ template <> struct DenseMapInfo<MBBSectionID> {
100100
}
101101
};
102102

103-
struct PrefetchTarget {
104-
StringRef TargetFunction;
105-
UniqueBBID TargetBBID;
106-
unsigned TargetBBOffset;
107-
};
108-
109103
template <> struct ilist_traits<MachineInstr> {
110104
private:
111105
friend class MachineBasicBlock; // Set by the owning MachineBasicBlock.

llvm/include/llvm/CodeGen/MachineInstr.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,8 @@ class MachineInstr
123123
NoUSWrap = 1 << 20, // Instruction supports geps
124124
// no unsigned signed wrap.
125125
SameSign = 1 << 21, // Both operands have the same sign.
126-
InBounds = 1 << 22, // Pointer arithmetic remains inbounds.
126+
InBounds = 1 << 22 // Pointer arithmetic remains inbounds.
127127
// Implies NoUSWrap.
128-
Prefetch = 1 << 23, // Instruction is a prefetch.
129128
};
130129

131130
private:

llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@
120120
#include "llvm/Support/Format.h"
121121
#include "llvm/Support/MathExtras.h"
122122
#include "llvm/Support/Path.h"
123-
#include "llvm/Support/SMLoc.h"
124123
#include "llvm/Support/VCSRevision.h"
125124
#include "llvm/Support/VirtualFileSystem.h"
126125
#include "llvm/Support/raw_ostream.h"
@@ -180,11 +179,6 @@ static cl::opt<bool> EmitJumpTableSizesSection(
180179
cl::desc("Emit a section containing jump table addresses and sizes"),
181180
cl::Hidden, cl::init(false));
182181

183-
static cl::opt<bool> InsertNoopsForPrefetch(
184-
"insert-noops-for-prefetch",
185-
cl::desc("Whether to insert noops instead of prefetches."), cl::init(false),
186-
cl::Hidden);
187-
188182
// This isn't turned on by default, since several of the scheduling models are
189183
// not completely accurate, and we don't want to be misleading.
190184
static cl::opt<bool> PrintLatency(
@@ -2131,7 +2125,7 @@ void AsmPrinter::emitFunctionBody() {
21312125
break;
21322126
}
21332127
default:
2134-
emitInstruction(&MI);
2128+
emitInstruction(&MI);
21352129

21362130
auto CountInstruction = [&](const MachineInstr &MI) {
21372131
// Skip Meta instructions inside bundles.

0 commit comments

Comments
 (0)