diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-02-04 00:39:19 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-02-04 00:39:19 +0000 |
commit | 6d68c7cf79f5688d0ccd52c5060273d22d81d8a4 (patch) | |
tree | 2adb804384c50917acea7c0b86b43c4c933db4a9 /llvm/lib/CodeGen/SelectionDAG | |
parent | 74388b4ec07187aebb4264c704c18180b6af8133 (diff) | |
download | bcm5719-llvm-6d68c7cf79f5688d0ccd52c5060273d22d81d8a4.tar.gz bcm5719-llvm-6d68c7cf79f5688d0ccd52c5060273d22d81d8a4.zip |
[fast-isel] HandlePHINodesInSuccessorBlocks() can promite i8 and i16 types too.
llvm-svn: 149730
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp index 8d2dbde8c3f..2700309e6f0 100644 --- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp @@ -1365,8 +1365,8 @@ bool FastISel::HandlePHINodesInSuccessorBlocks(const BasicBlock *LLVMBB) { // exactly one register for each non-void instruction. EVT VT = TLI.getValueType(PN->getType(), /*AllowUnknown=*/true); if (VT == MVT::Other || !TLI.isTypeLegal(VT)) { - // Promote MVT::i1. - if (VT == MVT::i1) + // Handle integer promotions, though, because they're common and easy. + if (VT == MVT::i1 || VT == MVT::i8 || VT == MVT::i16) VT = TLI.getTypeToTransformTo(LLVMBB->getContext(), VT); else { FuncInfo.PHINodesToUpdate.resize(OrigNumPHINodesToUpdate); |