[SimplifyCFG] Further improve our ability to remove redundant catchpads
authorDavid Majnemer <david.majnemer@gmail.com>
Tue, 5 Jan 2016 07:42:17 +0000 (07:42 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Tue, 5 Jan 2016 07:42:17 +0000 (07:42 +0000)
commita3d4e67e432577ebca542c8e483ec692956a88c8
treeb707907dd2785254f1f204df2184d8e594df1d3a
parenta4824774dc6cc54a8a69fec74eea6e2ed415a109
[SimplifyCFG] Further improve our ability to remove redundant catchpads

In r256814, we managed to remove catchpads which were trivially redudant
because they were the same SSA value.  We can do better using the same
algorithm but with a smarter datastructure by hashing the SSA values
within the catchpad and comparing them structurally.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256815 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/Local.cpp
test/Transforms/SimplifyCFG/wineh-unreachable.ll