[CodeGen] Support (and default to) expanding READCYCLECOUNTER to 0.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Fri, 28 Aug 2015 01:49:59 +0000 (01:49 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Fri, 28 Aug 2015 01:49:59 +0000 (01:49 +0000)
commit5edf06bb575e53370c87f7ffa34e2c8f2e403932
treef210abe28faa08168311fb0df8bed6f7fa7b3509
parent0bf9bbac4562e465ea8e7bc8f428456d71b4215c
[CodeGen] Support (and default to) expanding READCYCLECOUNTER to 0.

For targets that didn't support this, this will let us respect the
langref instead of failing to select.

Note that we don't need to change the 32-bit x86/PPC lowerings (to
account for the result type/# difference) because they're both
custom and bypass type legalization.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246258 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/ISDOpcodes.h
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
lib/CodeGen/SelectionDAG/LegalizeTypes.h
lib/CodeGen/TargetLoweringBase.cpp
lib/Target/ARM/ARMISelLowering.cpp