[TargetInstrInfo] replace redundant expression in getMemOpBaseRegImmOfs
authorMichael LeMay <michael.lemay@intel.com>
Mon, 19 Dec 2016 21:02:41 +0000 (21:02 +0000)
committerMichael LeMay <michael.lemay@intel.com>
Mon, 19 Dec 2016 21:02:41 +0000 (21:02 +0000)
commit20565e2aa1c63caa9a2cab07da6b71e81f438d46
treef5ccb61a23e5776fb843ec07bf6ad69ef87bc4ba
parent06dd406e27b4d43e202b1a8a9782896f80cb0370
[TargetInstrInfo] replace redundant expression in getMemOpBaseRegImmOfs

Summary:
The expression for computing the return value of getMemOpBaseRegImmOfs has only
one possible value. The other value would result in a return earlier in the
function. This patch replaces the expression with its only possible value.

Reviewers: sanjoy

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D27437

llvm-svn: 290133
llvm/lib/Target/X86/X86InstrInfo.cpp