From d503644a4a070e84addb5bd6a31f0d62e3877d5f Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sun, 30 Apr 2017 07:44:55 +0000 Subject: [PATCH] [X86] Clear KnownBits instead of reconstructing it. NFC llvm-svn: 301767 --- llvm/lib/Target/X86/X86ISelLowering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index 535be01abc5b..d767a7a7d2c7 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/lib/Target/X86/X86ISelLowering.cpp @@ -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: