[AggressiveInstCombine] avoid crashing on unsimplified code (PR37446)
authorSanjay Patel <spatel@rotateright.com>
Mon, 14 May 2018 13:43:32 +0000 (13:43 +0000)
committerSanjay Patel <spatel@rotateright.com>
Mon, 14 May 2018 13:43:32 +0000 (13:43 +0000)
commitbf55e6dee136d081b0858f62fcc362d74a708894
treef9d4d6d2d7c440cde8fda1711cbc39744cfe3f3e
parent8f2b2f4e048522b542b5dd948acfc4eca33fd14b
[AggressiveInstCombine] avoid crashing on unsimplified code (PR37446)

This bug:
https://bugs.llvm.org/show_bug.cgi?id=37446
...raises another question: why do we run aggressive-instcombine before
regular instcombine?

llvm-svn: 332243
llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp
llvm/test/Transforms/AggressiveInstCombine/masked-cmp.ll