[llvm] r301767 - [X86] Clear KnownBits instead of reconstructing it. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 30 00:44:56 PDT 2017
Author: ctopper
Date: Sun Apr 30 02:44:55 2017
New Revision: 301767
URL: http://llvm.org/viewvc/llvm-project?rev=301767&view=rev
Log:
[X86] Clear KnownBits instead of reconstructing it. NFC
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=301767&r1=301766&r2=301767&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Sun Apr 30 02:44:55 2017
@@ -26682,7 +26682,7 @@ void X86TargetLowering::computeKnownBits
"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:
More information about the llvm-commits
mailing list