[PATCH] D41625: [DAGCombine] Fix for PR35765

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 2 02:20:14 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL321641: [DAGCombine] Fix for PR35765 (authored by sam_parker, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D41625?vs=128336&id=128401#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D41625

Files:
  llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/trunk/test/CodeGen/X86/pr35765.ll


Index: llvm/trunk/test/CodeGen/X86/pr35765.ll
===================================================================
--- llvm/trunk/test/CodeGen/X86/pr35765.ll
+++ llvm/trunk/test/CodeGen/X86/pr35765.ll
@@ -17,8 +17,9 @@
 ; CHECK-NEXT:    movzwl {{.*}}(%rip), %ecx
 ; CHECK-NEXT:    movzwl {{.*}}(%rip), %edx
 ; CHECK-NEXT:    notl %edx
+; CHECK-NEXT:    orl $63488, %edx # imm = 0xF800
+; CHECK-NEXT:    movzwl %dx, %edx
 ; CHECK-NEXT:    orl %ecx, %edx
-; CHECK-NEXT:    orl $-2048, %edx # imm = 0xF800
 ; CHECK-NEXT:    xorl %eax, %edx
 ; CHECK-NEXT:    movslq %edx, %rax
 ; CHECK-NEXT:    movq %rax, {{.*}}(%rip)
Index: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
===================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -3850,7 +3850,6 @@
       return false;
     }
     case ISD::ZERO_EXTEND:
-    case ISD::ANY_EXTEND:
     case ISD::AssertZext: {
       unsigned ActiveBits = Mask->getAPIntValue().countTrailingOnes();
       EVT ExtVT = EVT::getIntegerVT(*DAG.getContext(), ActiveBits);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41625.128401.patch
Type: text/x-patch
Size: 1128 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180102/9802e424/attachment.bin>


More information about the llvm-commits mailing list