[Analysis] fix swapped operands to computeConstantRange
authorSanjay Patel <spatel@rotateright.com>
Tue, 4 Jan 2022 18:11:24 +0000 (13:11 -0500)
committerSanjay Patel <spatel@rotateright.com>
Tue, 4 Jan 2022 18:13:50 +0000 (13:13 -0500)
commit1e50d064666f7e807ac96655405c5678251475f5
tree6028cd09e3ad79da6be54fa85c9b05a34517627e
parentdf2e728b77510da33cf3822eae4d66531eeed518
[Analysis] fix swapped operands to computeConstantRange

This was noted in post-commit review for D116322 / 0edf99950e6 .

I am not seeing how to expose the bug in a test though because
we don't pass an assumption cache into this analysis from there.
llvm/lib/Analysis/ValueTracking.cpp