Allow hasProperty() to be called on bundle-internal instructions.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 10 Jan 2013 18:42:44 +0000 (18:42 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 10 Jan 2013 18:42:44 +0000 (18:42 +0000)
commit4aebce83212d7271454c8767085645fe11054b44
tree2756929b0903b8ed95bbc7e5cde2dc57980a3bb5
parent5e1b31bf5588cd9ea0b16e94fcc1d908e40027e2
Allow hasProperty() to be called on bundle-internal instructions.

When calling hasProperty() on an instruction inside a bundle, it should
always behave as if IgnoreBundle was passed, and just return properties
for the current instruction.

Only attempt to aggregate bundle properties whan asked about the bundle
header.

The assertion fires on existing ARM test cases without this fix.

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