diff options
author | Adam Nemet <anemet@apple.com> | 2014-09-16 17:14:10 +0000 |
---|---|---|
committer | Adam Nemet <anemet@apple.com> | 2014-09-16 17:14:10 +0000 |
commit | 0c7caf434ffe011c4232b1b6d13bf5f2fbf2132c (patch) | |
tree | f4a99d0f59b9f0545b589ba514943d5ac953ecb2 | |
parent | 10a65e2ee15499afa1df9717fe0031529b5e556e (diff) | |
download | bcm5719-llvm-0c7caf434ffe011c4232b1b6d13bf5f2fbf2132c.tar.gz bcm5719-llvm-0c7caf434ffe011c4232b1b6d13bf5f2fbf2132c.zip |
[X86] Improve comment
llvm-svn: 217885
-rw-r--r-- | llvm/lib/Target/X86/X86ISelDAGToDAG.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp index 446a38247da..a8587cd9a2a 100644 --- a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp +++ b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp @@ -775,9 +775,10 @@ static void InsertDAGNode(SelectionDAG &DAG, SDValue Pos, SDValue N) { } } -// Transform "(X >> (8-C1)) & C2" to "(X >> 8) & 0xff)" if safe. This -// allows us to convert the shift and and into an h-register extract and -// a scaled index. Returns false if the simplification is performed. +// Transform "(X >> (8-C1)) & (0xff << C1)" to "((X >> 8) & 0xff) << C1" if +// safe. This allows us to convert the shift and and into an h-register +// extract and a scaled index. Returns false if the simplification is +// performed. static bool FoldMaskAndShiftToExtract(SelectionDAG &DAG, SDValue N, uint64_t Mask, SDValue Shift, SDValue X, |