diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-02-12 15:35:40 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-02-12 15:35:40 +0000 |
| commit | 5f6a9072882f97076910f94f3cc470a567c5bf20 (patch) | |
| tree | 67ea94598b8e81db6162e4cf1de15ef1012b391f /llvm/lib/Target/X86/X86ISelDAGToDAG.cpp | |
| parent | f1828ef3c6009fea5d88b3ca116e71cc90df6ff0 (diff) | |
| download | bcm5719-llvm-5f6a9072882f97076910f94f3cc470a567c5bf20.tar.gz bcm5719-llvm-5f6a9072882f97076910f94f3cc470a567c5bf20.zip | |
MathExtras: Bring Count(Trailing|Leading)Ones and CountPopulation in line with countTrailingZeros
Update all callers.
llvm-svn: 228930
Diffstat (limited to 'llvm/lib/Target/X86/X86ISelDAGToDAG.cpp')
| -rw-r--r-- | llvm/lib/Target/X86/X86ISelDAGToDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp index f143b200ec4..51ae5054b11 100644 --- a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp +++ b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp @@ -916,7 +916,7 @@ static bool FoldMaskAndShiftToScale(SelectionDAG &DAG, SDValue N, if (AMShiftAmt <= 0 || AMShiftAmt > 3) return true; // We also need to ensure that mask is a continuous run of bits. - if (CountTrailingOnes_64(Mask >> MaskTZ) + MaskTZ + MaskLZ != 64) return true; + if (countTrailingOnes(Mask >> MaskTZ) + MaskTZ + MaskLZ != 64) return true; // Scale the leading zero count down based on the actual size of the value. // Also scale it down based on the size of the shift. |

