[InstCombine] prevent infinite loop with sub/abs of constant expression
authorSanjay Patel <spatel@rotateright.com>
Wed, 15 Apr 2020 13:11:44 +0000 (09:11 -0400)
committerSanjay Patel <spatel@rotateright.com>
Wed, 15 Apr 2020 13:19:16 +0000 (09:19 -0400)
commit01bcc3e9371470e1974f066ced353df15e10056d
tree8ac942450412485f679841cfe52448836446b8b1
parent3a612450508b314b7a6f4db142d0c619031d760e
[InstCombine] prevent infinite loop with sub/abs of constant expression

PR45539:
https://bugs.llvm.org/show_bug.cgi?id=45539
llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
llvm/test/Transforms/InstCombine/abs-1.ll