Don't require BUNDLE headers in MachineInstr::getBundleSize().
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 9 Jan 2013 18:28:16 +0000 (18:28 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 9 Jan 2013 18:28:16 +0000 (18:28 +0000)
commit25377c8c6dafd094f17833f2c37daff0b77a16fc
tree16537db7545d72416dd1eefe77ed070120c73e3f
parentd9cc865787d673a8d1021d0b9659fd438feba845
Don't require BUNDLE headers in MachineInstr::getBundleSize().

It is possible to build MI bundles that don't begin with a BUNDLE
header. Add support for such bundles, counting all instructions inside
the bundle.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171985 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineInstr.h
lib/CodeGen/MachineInstr.cpp