[PATCH] D27437: [TargetInstrInfo] replace redundant expression in getMemOpBaseRegImmOfs

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 19 13:13:11 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL290133: [TargetInstrInfo] replace redundant expression in getMemOpBaseRegImmOfs (authored by mdlemay).

Changed prior to commit:
  https://reviews.llvm.org/D27437?vs=80353&id=81990#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D27437

Files:
  llvm/trunk/lib/Target/X86/X86InstrInfo.cpp


Index: llvm/trunk/lib/Target/X86/X86InstrInfo.cpp
===================================================================
--- llvm/trunk/lib/Target/X86/X86InstrInfo.cpp
+++ llvm/trunk/lib/Target/X86/X86InstrInfo.cpp
@@ -5969,8 +5969,7 @@
 
   Offset = DispMO.getImm();
 
-  return MemOp.getOperand(MemRefBegin + X86::AddrIndexReg).getReg() ==
-         X86::NoRegister;
+  return true;
 }
 
 static unsigned getStoreRegOpcode(unsigned SrcReg,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27437.81990.patch
Type: text/x-patch
Size: 439 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161219/1d858559/attachment.bin>


More information about the llvm-commits mailing list