[X86] Clear KnownBits instead of reconstructing it. NFC
authorCraig Topper <craig.topper@gmail.com>
Sun, 30 Apr 2017 07:44:55 +0000 (07:44 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sun, 30 Apr 2017 07:44:55 +0000 (07:44 +0000)
llvm-svn: 301767

llvm/lib/Target/X86/X86ISelLowering.cpp

index 535be01..d767a7a 100644 (file)
@@ -26682,7 +26682,7 @@ void X86TargetLowering::computeKnownBitsForTargetNode(const SDValue Op,
          "Should use MaskedValueIsZero if you don't know whether Op"
          " is a target node!");
 
-  Known = KnownBits(BitWidth);   // Don't know anything.
+  Known.Zero.clearAllBits(); Known.One.clearAllBits();
   switch (Opc) {
   default: break;
   case X86ISD::ADD: