diff options
| author | Matthias Braun <matze@braunis.de> | 2015-02-25 18:03:50 +0000 |
|---|---|---|
| committer | Matthias Braun <matze@braunis.de> | 2015-02-25 18:03:50 +0000 |
| commit | 02892ec62d899343c33a304c449cef638fa3a134 (patch) | |
| tree | 9e8c9dddee8a44a9da492130c1eee61f42066be5 /llvm/lib | |
| parent | 2a102cbc77b91d0234aae0534a37792ffa2befe9 (diff) | |
| download | bcm5719-llvm-02892ec62d899343c33a304c449cef638fa3a134.tar.gz bcm5719-llvm-02892ec62d899343c33a304c449cef638fa3a134.zip | |
AArch64: Add debug message for large shift constants.
As requested in code review.
llvm-svn: 230517
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp b/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp index a6bac6446f2..ac11c4d642b 100644 --- a/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp +++ b/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp @@ -1399,8 +1399,11 @@ static bool isBitfieldExtractOpFromAnd(SelectionDAG *CurDAG, SDNode *N, // Bail out on large immediates. This happens when no proper // combining/constant folding was performed. - if (!BiggerPattern && (Srl_imm <= 0 || Srl_imm >= VT.getSizeInBits())) + if (!BiggerPattern && (Srl_imm <= 0 || Srl_imm >= VT.getSizeInBits())) { + DEBUG((dbgs() << N + << ": Found large shift immediate, this should not happen\n")); return false; + } LSB = Srl_imm; MSB = Srl_imm + (VT == MVT::i32 ? countTrailingOnes<uint32_t>(And_imm) @@ -1506,8 +1509,11 @@ static bool isBitfieldExtractOpFromShr(SDNode *N, unsigned &Opc, SDValue &Opd0, // Missing combines/constant folding may have left us with strange // constants. - if (Shl_imm >= VT.getSizeInBits()) + if (Shl_imm >= VT.getSizeInBits()) { + DEBUG((dbgs() << N + << ": Found large shift immediate, this should not happen\n")); return false; + } uint64_t Srl_imm = 0; if (!isIntImmediate(N->getOperand(1), Srl_imm)) |

