InstrProf: Don't combine expansion regions with code regions
authorJustin Bogner <mail@justinbogner.com>
Wed, 18 Feb 2015 19:01:06 +0000 (19:01 +0000)
committerJustin Bogner <mail@justinbogner.com>
Wed, 18 Feb 2015 19:01:06 +0000 (19:01 +0000)
commit798787cea41af4da9883191ce21d062236afa451
tree9e57200829112375e3b989d38650a0cc24c997ca
parent59935868d379926ae9976f5182d1d9a0cc7498c6
InstrProf: Don't combine expansion regions with code regions

This was leading to duplicate counts when a code region happened to
overlap exactly with an expansion. The combining behaviour only makes
sense for code regions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229723 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ProfileData/CoverageMapping.cpp
unittests/ProfileData/CoverageMappingTest.cpp