[Transforms] Redundant getValueOperand (NFC)
authorBrian Gesiak <modocache@gmail.com>
Tue, 2 Apr 2019 14:57:56 +0000 (14:57 +0000)
committerBrian Gesiak <modocache@gmail.com>
Tue, 2 Apr 2019 14:57:56 +0000 (14:57 +0000)
commit1c44ed8b76111e66e0dd25bc074daa2006f692ce
tree5040726f4217406d6f5f8642a527dd1960710a27
parent3bf63cf3b366d3a57cf5cbad4112a6abf6c0c3b1
[Transforms] Redundant getValueOperand (NFC)

`StoreInst::getValueOperand` is identical to `getOperand(0)`, so the call to
`getOperand(0)` can be replaced. Further, `SI->getValueOperand` is redundantly
called just a few lines down, despite its return value being stored in variable
`DV`. No functional change.

llvm-svn: 357479
llvm/lib/Transforms/Utils/Local.cpp