OSDN Git Service

[X86] Simplify the ReplaceNodeResults code for X86ISD::AVG.
authorCraig Topper <craig.topper@intel.com>
Mon, 26 Feb 2018 02:16:33 +0000 (02:16 +0000)
committerCraig Topper <craig.topper@intel.com>
Mon, 26 Feb 2018 02:16:33 +0000 (02:16 +0000)
commite700b0d6508a5553b15d4ea9db2496a9cafdab76
tree9e3f3808bc395d7339137d36a39f9bf6aa9b9892
parent9db7d1d7a5d2989f2f730c3a31bd1d7f2b31feec
[X86] Simplify the ReplaceNodeResults code for X86ISD::AVG.

This code seemed to try to widen to 128, 256, or 512 bit vectors, but we only create X86ISD::AVG with a power of 2 number of elements. This means the only nodes that need to be legalized are less than 128-bits and need to be widened up to 128 bits.

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