projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
795ebe3
)
[X86] In matchBitExtract, if we need to truncate the BEXTR make sure we put the BEXTR...
author
Craig Topper
<craig.topper@intel.com>
Tue, 26 Mar 2019 05:12:23 +0000
(
05:12
+0000)
committer
Craig Topper
<craig.topper@intel.com>
Tue, 26 Mar 2019 05:12:23 +0000
(
05:12
+0000)
We were using OrigNBits, but that doesn't guarantee that it will be selected before the nodes that make up X.
llvm-svn: 356978
llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
index
4cf7b02
..
38c1c6b
100644
(file)
--- a/
llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
+++ b/
llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
@@
-3086,7
+3086,7
@@
bool X86DAGToDAGISel::matchBitExtract(SDNode *Node) {
// The 'X' was originally truncated. Do that now.
if (XVT != NVT) {
- insertDAGNode(*CurDAG,
OrigNBits
, Extract);
+ insertDAGNode(*CurDAG,
SDValue(Node, 0)
, Extract);
Extract = CurDAG->getNode(ISD::TRUNCATE, DL, NVT, Extract);
}