Clone and restore the module being reduced in
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 26 Jul 2010 00:07:51 +0000 (00:07 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 26 Jul 2010 00:07:51 +0000 (00:07 +0000)
commit84ae206c976c76761e307e5c45f8170d0b61015f
treed2bb7a9718246d1607cdca73c2ae7c08237f1f83
parent82d5baec32054849e760625e2413a27edfd1a9fc
Clone and restore the module being reduced in
ReduceMiscompilingFunctions::TestFuncs. This makes the test functional
(i.e., no side effects).

Before we would end up using dead functions if a pass decided to remove them
(inline for example) and we would also keep broken functions and conclude that
that a single function was enough to reproduce the bug.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109387 91177308-0d34-0410-b5e6-96231b3b80d8
tools/bugpoint/Miscompilation.cpp