diff options
author | Aditya Nandakumar <aditya_nandakumar@apple.com> | 2017-08-23 20:45:48 +0000 |
---|---|---|
committer | Aditya Nandakumar <aditya_nandakumar@apple.com> | 2017-08-23 20:45:48 +0000 |
commit | efd8a84cd58e392c9fe68300a17378dc49b61330 (patch) | |
tree | 1f5071d91223f86d00cc580551c16efa83d90783 /llvm/lib/Target/ARM/ARMRegisterBankInfo.cpp | |
parent | 950567aac4bcd7e6e5231d1874f2d3f30fff3412 (diff) | |
download | bcm5719-llvm-efd8a84cd58e392c9fe68300a17378dc49b61330.tar.gz bcm5719-llvm-efd8a84cd58e392c9fe68300a17378dc49b61330.zip |
[GISEl]: Translate phi into G_PHI
G_PHI has the same semantics as PHI but also has types.
This lets us verify that the types in the G_PHI are consistent.
This also allows specifying legalization actions for G_PHIs.
https://reviews.llvm.org/D36990
llvm-svn: 311596
Diffstat (limited to 'llvm/lib/Target/ARM/ARMRegisterBankInfo.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMRegisterBankInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMRegisterBankInfo.cpp b/llvm/lib/Target/ARM/ARMRegisterBankInfo.cpp index 84d6be63cbe..2400e1af246 100644 --- a/llvm/lib/Target/ARM/ARMRegisterBankInfo.cpp +++ b/llvm/lib/Target/ARM/ARMRegisterBankInfo.cpp @@ -198,7 +198,7 @@ ARMRegisterBankInfo::getInstrMapping(const MachineInstr &MI) const { // Try the default logic for non-generic instructions that are either copies // or already have some operands assigned to banks. - if (!isPreISelGenericOpcode(Opc)) { + if (!isPreISelGenericOpcode(Opc) || Opc == TargetOpcode::G_PHI) { const InstructionMapping &Mapping = getInstrMappingImpl(MI); if (Mapping.isValid()) return Mapping; |