[X86] X86InstrInfo::findThreeSrcCommutedOpIndices - fix unread variable warning.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 6 May 2019 10:15:34 +0000 (10:15 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 6 May 2019 10:15:34 +0000 (10:15 +0000)
commit04dad8f66d882707cc70ba7e20df77517dbb5a68
tree23142d281f42251a88e3a78b18537380586046e8
parent07d91cd98aab936c0cc9bf168dc83574941d37a5
[X86] X86InstrInfo::findThreeSrcCommutedOpIndices - fix unread variable warning.

scan-build was reporting that CommutableOpIdx1 never used its original initialized value - move it down to where its first used to make the real initialization more obvious (and matches the comment that's there).

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