[ValueTracking] Fix incorrect computeConstantRange() arguments
authorNikita Popov <npopov@redhat.com>
Fri, 31 Mar 2023 14:56:56 +0000 (16:56 +0200)
committerNikita Popov <npopov@redhat.com>
Fri, 31 Mar 2023 14:56:56 +0000 (16:56 +0200)
commit3f53a58597bc84418f8b83934ef2f5c5d615626b
tree2fab142fd614007b6a9f5347bcc81f347c99b172
parent40fc60292b56b4c247bad9f862217c74a63799a7
[ValueTracking] Fix incorrect computeConstantRange() arguments

The second argument is ForSigned, not UseInstrInfo.
llvm/lib/Analysis/ValueTracking.cpp
llvm/test/Transforms/InstCombine/saturating-add-sub.ll