Skip to content

Commit 933ccb6

Browse files
committed
Minor fixes
1 parent 71586ad commit 933ccb6

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

llvm/lib/Target/X86/GISel/X86InstructionSelector.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1910,9 +1910,6 @@ X86InstructionSelector::selectAddr(MachineOperand &Root) const {
19101910
X86AddressMode AM;
19111911
X86SelectAddress(*Ptr, TM, MRI, STI, AM);
19121912

1913-
if (AM.Scale != 1)
1914-
return std::nullopt;
1915-
19161913
if (AM.IndexReg)
19171914
return std::nullopt;
19181915

llvm/lib/Target/X86/X86InstrBuilder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ struct X86AddressMode {
5454
int Disp = 0;
5555
const GlobalValue *GV = nullptr;
5656
unsigned GVOpFlags = 0;
57-
bool CP = false;;
57+
bool CP = false;
5858

5959
void getFullAddress(SmallVectorImpl<MachineOperand> &MO) {
6060
assert(Scale == 1 || Scale == 2 || Scale == 4 || Scale == 8);

0 commit comments

Comments
 (0)