Remove redundant test for vector-nature. Scan the vector first to see whether
authorNick Lewycky <nicholas@mxc.ca>
Sat, 20 Dec 2008 16:48:00 +0000 (16:48 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sat, 20 Dec 2008 16:48:00 +0000 (16:48 +0000)
commit9dce873c1af959d635f1a8dd4ae2ccb5ac62584d
tree0a004663076c1ce2e38fcb63bb281bf31746ca8c
parentfce40287181af1ae376c3991626ffbf0ccd902b7
Remove redundant test for vector-nature. Scan the vector first to see whether
our optz'n will apply to it, then build the replacement vector only if needed.

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