When comparing constants, consider a less wide constant to be "less complex"
commit9bb1405bd9cb5aa4fe7d0d32ff69121b8482db4d
authorNick Lewycky <nicholas@mxc.ca>
Sat, 4 Jul 2009 17:24:52 +0000 (4 17:24 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sat, 4 Jul 2009 17:24:52 +0000 (4 17:24 +0000)
treeab55d4b63dd9da804b8b1c8cb06fcc65150dfbba
parent4671040e740e359efe747bc26f6f1fbc4481f983
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]