OSDN Git Service

[X86] Don't compute known bits twice for the same SDValue in LowerMUL.
authorCraig Topper <craig.topper@intel.com>
Mon, 12 Mar 2018 05:35:02 +0000 (05:35 +0000)
committerCraig Topper <craig.topper@intel.com>
Mon, 12 Mar 2018 05:35:02 +0000 (05:35 +0000)
commit1c193f4abb7b73d3f68e7280741309e360510813
treebf0921623b4ed5a4fadea111f40e48b359889174
parente6bdfcf63a0e0765d1e30d65abfd670c3a9ce37a
[X86] Don't compute known bits twice for the same SDValue in LowerMUL.

We called MaskedValueIsZero with two different masks, but underneath that calls computeKnownBits before applying the mask. This means we compute the same known bits twice due to the two calls. Instead just call computeKnownBits directly and apply the two masks ourselves.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@327251 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp