OSDN Git Service

If the target says that an extending load is not legal, regardless of whether
authorBob Wilson <bob.wilson@apple.com>
Thu, 19 Aug 2010 23:52:39 +0000 (23:52 +0000)
committerBob Wilson <bob.wilson@apple.com>
Thu, 19 Aug 2010 23:52:39 +0000 (23:52 +0000)
commit63241f79e667feafb10936b7c2cf03c33f55dd01
treedaeb3473650c3312c13d1bf2b0db3a57b5926337
parente2f556933e1a19cddf6d4f370e2770c0f763b025
If the target says that an extending load is not legal, regardless of whether
it involves specific floating-point types, legalize should expand an
extending load to a non-extending load followed by a separate extend operation.
For example, we currently expand SEXTLOAD to EXTLOAD+SIGN_EXTEND_INREG (and
assert that EXTLOAD should always be supported).  Now we can expand that to
LOAD+SIGN_EXTEND.  This is needed to allow vector SIGN_EXTEND and ZERO_EXTEND
to be used for NEON.

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