Add function GetConstantValueAsUnsignedInt.
authorVikram S. Adve <vadve@cs.uiuc.edu>
Sun, 4 Aug 2002 20:49:49 +0000 (20:49 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Sun, 4 Aug 2002 20:49:49 +0000 (20:49 +0000)
commit1b51b1b4f9c191c070554df5d1f86b5aeefd0453
tree80ebfeafddf81fad02ebfb3cc9a312c8f53a3943
parent75ac4e511afe04842dee6b5a1d1db4007d24d1a8
Add function GetConstantValueAsUnsignedInt.
Fix 2 bugs in FoldGetElemChain so index vector is not modified
when no GEPs are folded in, and so a hasLeadingZero is computed
only for the last folded GEP, not the one after that if any.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3244 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp
lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp