This is an archive of the discontinued LLVM Phabricator instance.

[TargetInstrInfo] replace redundant expression in getMemOpBaseRegImmOfs
ClosedPublic

Authored by mlemay-intel on Dec 5 2016, 5:31 PM.

Details

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.

Diff Detail

Repository
rL LLVM

Event Timeline

mlemay-intel retitled this revision from to [TargetInstrInfo] replace redundant expression in getMemOpBaseRegImmOfs.
mlemay-intel updated this object.
mlemay-intel added a reviewer: sanjoy.
mlemay-intel added a subscriber: llvm-commits.
sanjoy accepted this revision.Dec 11 2016, 8:21 PM
sanjoy edited edge metadata.

lgtm

This revision is now accepted and ready to land.Dec 11 2016, 8:21 PM
This revision was automatically updated to reflect the committed changes.