OSDN Git Service

Use ZERO_EXTEND instead of ANY_EXTEND when promoting
authorDan Gohman <gohman@apple.com>
Wed, 28 Jan 2009 02:58:31 +0000 (02:58 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 28 Jan 2009 02:58:31 +0000 (02:58 +0000)
commit77f7a5771e01ec5ec5fdbb3af8fcc2ce31e1d4f7
tree5adee67acaed806e8fc59200f473398684bcc5d8
parent42ce8eaa8c5af9c29825737ce337e6e2397ab6a6
Use ZERO_EXTEND instead of ANY_EXTEND when promoting
shift amounts, to avoid implicitly assuming that
target architectures will ignore the high bits.

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