mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-05 02:16:46 +00:00
Add a couple default: llvm_unreachable() to some switch statements. Fix a bad message in an existing llvm_unreachable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161725 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
743a2cff04
commit
2865422a4d
@ -2062,7 +2062,7 @@ SDNode *X86DAGToDAGISel::Select(SDNode *Node) {
|
||||
case X86ISD::ATOMSWAP64_DAG: {
|
||||
unsigned Opc;
|
||||
switch (Opcode) {
|
||||
default: llvm_unreachable("Impossible intrinsic");
|
||||
default: llvm_unreachable("Impossible opcode");
|
||||
case X86ISD::ATOMOR64_DAG: Opc = X86::ATOMOR6432; break;
|
||||
case X86ISD::ATOMXOR64_DAG: Opc = X86::ATOMXOR6432; break;
|
||||
case X86ISD::ATOMADD64_DAG: Opc = X86::ATOMADD6432; break;
|
||||
@ -2119,7 +2119,7 @@ SDNode *X86DAGToDAGISel::Select(SDNode *Node) {
|
||||
if (Opcode != ISD::AND && ((Val >> ShlVal) << ShlVal) != Val)
|
||||
break;
|
||||
|
||||
unsigned ShlOp, Op = 0;
|
||||
unsigned ShlOp, Op;
|
||||
EVT CstVT = NVT;
|
||||
|
||||
// Check the minimum bitwidth for the new constant.
|
||||
@ -2142,6 +2142,7 @@ SDNode *X86DAGToDAGISel::Select(SDNode *Node) {
|
||||
ShlOp = X86::SHL32ri;
|
||||
|
||||
switch (Opcode) {
|
||||
default: llvm_unreachable("Impossible opcode");
|
||||
case ISD::AND: Op = X86::AND32ri8; break;
|
||||
case ISD::OR: Op = X86::OR32ri8; break;
|
||||
case ISD::XOR: Op = X86::XOR32ri8; break;
|
||||
@ -2152,6 +2153,7 @@ SDNode *X86DAGToDAGISel::Select(SDNode *Node) {
|
||||
ShlOp = X86::SHL64ri;
|
||||
|
||||
switch (Opcode) {
|
||||
default: llvm_unreachable("Impossible opcode");
|
||||
case ISD::AND: Op = CstVT==MVT::i8? X86::AND64ri8 : X86::AND64ri32; break;
|
||||
case ISD::OR: Op = CstVT==MVT::i8? X86::OR64ri8 : X86::OR64ri32; break;
|
||||
case ISD::XOR: Op = CstVT==MVT::i8? X86::XOR64ri8 : X86::XOR64ri32; break;
|
||||
|
Loading…
Reference in New Issue
Block a user