[SCEV] Make CompareValueComplexity a little bit smarter
authorSanjoy Das <sanjoy@playingwithpointers.com>
Tue, 18 Oct 2016 17:45:16 +0000 (17:45 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Tue, 18 Oct 2016 17:45:16 +0000 (17:45 +0000)
commit507dd40a4abadbfdaa4f49a4823ddae6c7dfec4f
tree763b4571b06f252c6b763b98dfb98722aa13148f
parent9cd877a25a5092b1553c693530f1ffc0c6edbdfe
[SCEV] Make CompareValueComplexity a little bit smarter

This helps canonicalization in some cases.

Thanks to Pankaj Chawla for the investigation and the test case!

llvm-svn: 284501
llvm/lib/Analysis/ScalarEvolution.cpp
llvm/unittests/Analysis/ScalarEvolutionTest.cpp