When comparing constants, consider a less wide constant to be "less complex"
authorNick Lewycky <nicholas@mxc.ca>
Sat, 4 Jul 2009 17:24:52 +0000 (17:24 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sat, 4 Jul 2009 17:24:52 +0000 (17:24 +0000)
commitd1ec98923e2eee1fb4e6cd1f91b80210f021e301
treeab55d4b63dd9da804b8b1c8cb06fcc65150dfbba
parent0cddc49b91db628353dbd7f97b8092b44d39d348
When comparing constants, consider a less wide constant to be "less complex"
than a wider one, before trying to compare their contents which will crash
if their sizes are different.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74792 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolution.cpp
test/Analysis/ScalarEvolution/2009-07-04-GroupConstantsWidthMismatch.ll [new file with mode: 0644]