OSDN Git Service

[InstCombine] clean up foldVectorBinop(); NFC
authorSanjay Patel <spatel@rotateright.com>
Wed, 3 Oct 2018 15:46:03 +0000 (15:46 +0000)
committerSanjay Patel <spatel@rotateright.com>
Wed, 3 Oct 2018 15:46:03 +0000 (15:46 +0000)
commitcf8ba840b8a8fac5cecc0c0bddce80c2c29150d6
treec2cadd3e75e67a432cc6cfe53ac32c2e910edb10
parent96c454b924d6fddafeb312d17656e593ede53418
[InstCombine] clean up foldVectorBinop(); NFC

1. Fix include ordering.
2. Improve variable name (width is bitwidth not number-of-elements).
3. Add local Opcode variable to reduce code duplication.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@343694 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstructionCombining.cpp