Use getZExtOrTrunc helper instead of manually doing zext/trunc check. NFC.
authorPete Cooper <peter_cooper@apple.com>
Wed, 15 Jul 2015 00:43:54 +0000 (00:43 +0000)
committerPete Cooper <peter_cooper@apple.com>
Wed, 15 Jul 2015 00:43:54 +0000 (00:43 +0000)
commit8acd3869694883cffc08e3a21929208055e7a845
treee2f8bc50a5aa7f60c343317c6ac44821bf62f203
parent33fb2cb11b7d2454bd2d97fe95c11ed38679327b
Use getZExtOrTrunc helper instead of manually doing zext/trunc check.  NFC.

The code here was doing exactly what is already in getZExtOrTrunc().
Just use that method instead.

llvm-svn: 242260
llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp