[CleanUp] Remove NumInstructions field from LoopVectorizer's RegisterUsage struct.
authorMatt Davis <Matthew.Davis@sony.com>
Wed, 14 Mar 2018 23:30:31 +0000 (23:30 +0000)
committerMatt Davis <Matthew.Davis@sony.com>
Wed, 14 Mar 2018 23:30:31 +0000 (23:30 +0000)
commit9407bb5f548ebd5900a0fc8226c7f49ee247126f
tree4025897dd446b7d347fb56193fb6fba5ea25cf06
parent48fbf0c69a256024c19cf3dfb1f17ab570661973
[CleanUp] Remove NumInstructions field from LoopVectorizer's RegisterUsage struct.

Summary:
This variable is largely going unused; aside from reporting number of instructions for in DEBUG builds.

The only use of NumInstructions is in debug output to represent the LoopSize.  That value can be can be misleading as it also includes metadata instructions (e.g., DBG_VALUE) which have no real impact.  If we do choose to keep this around, we probably should guard it by a DEBUG macro, as it's not used in production builds.

Reviewers: majnemer, congh, rengolin

Reviewed By: rengolin

Subscribers: llvm-commits, rengolin

Differential Revision: https://reviews.llvm.org/D44495

llvm-svn: 327589
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp