[InstCombine] fold usub.with.overflow to icmp when there's no use of the math value
authorSanjay Patel <spatel@rotateright.com>
Tue, 9 Aug 2022 17:03:23 +0000 (13:03 -0400)
committerSanjay Patel <spatel@rotateright.com>
Tue, 9 Aug 2022 17:13:48 +0000 (13:13 -0400)
commit926e7312b2f20f2f7b0a3d5ddbd29da5625507f3
treee93f8e9130002604d45cbbe050ec12c7ed483f25
parent8800b1103a4f5ac5e5a21c96a39cd382aa1ceccd
[InstCombine] fold usub.with.overflow to icmp when there's no use of the math value

https://alive2.llvm.org/ce/z/UE48FH

This is part of solving issue #56926.
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
llvm/test/Transforms/InstCombine/usubo.ll