Two changes:
authorReid Spencer <rspencer@reidspencer.com>
Wed, 3 Jan 2007 04:25:33 +0000 (04:25 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Wed, 3 Jan 2007 04:25:33 +0000 (04:25 +0000)
commit8c57dfb1aea24132bd5b58c4ed4893ea967ba131
tree34f33605da11170aa49e4b563a8735d639593919
parentb47b25cfda5aee910e128c89d08c630722eb480b
Two changes:
1. Switch expression and cases are compared signed and are sign extended.
2. For function results needing extended, do SIGN_EXTEND if the SExtAttribute
   is set and ZERO_EXTEND if the ZExtAttribute is set, otherwise just let
   the Legalizer do ANY_EXTEND.
This fixes the recent regression in kimwitu++ and probably the llvm-gcc
bootstrap issue we had today.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32830 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp