OSDN Git Service

[ARM] Cleanup ARM CGP isSupportedValue
authorSam Parker <sam.parker@arm.com>
Mon, 17 Sep 2018 13:57:39 +0000 (13:57 +0000)
committerSam Parker <sam.parker@arm.com>
Mon, 17 Sep 2018 13:57:39 +0000 (13:57 +0000)
commita72fb5424051b7e20941aed3096dee9f69f55d91
tree225b7896dc6300f8106c7058b843fb6fbabe3976
parent222bbfaef7a23e74cce5fb2449e6fd41fb933520
[ARM] Cleanup ARM CGP isSupportedValue

isSupportedValue explicitly checked and accepted many types of value,
primarily for debugging reasons. Remove most of these checks and do a
bit of refactoring now that the pass is more stable. This also enables
ZExts to be sources, but this has very little practical benefit at the
moment extend instructions will still be introduced.

Differential Revision: https://reviews.llvm.org/D52080

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@342395 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMCodeGenPrepare.cpp
test/CodeGen/ARM/arm-cgp-casts.ll