OSDN Git Service

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)
commit40e41e1c5834409610c4c4b80de5b6e0de59c07c
tree0e795e2702761afaaacd60c314d2e7d05279eea1
parent67ee52cf042860c505715ada15f98b8b7ecd932c
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.

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