[CodeGen] Remove constant-folding dead code. NFC.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Tue, 12 Apr 2016 18:15:39 +0000 (18:15 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Tue, 12 Apr 2016 18:15:39 +0000 (18:15 +0000)
commit7ac86c47d2734cd83bfe757bc075f2827d6339f2
tree3861b368cf6dec2ebe86c649ce8051ff5d44ddff
parent5502e91c8b6a3f069f4c5770b7aaef9c8b0f002a
[CodeGen] Remove constant-folding dead code. NFC.

This code was specific to vector operations with scalar operands:
all the opcodes in FoldValue (via FoldConstantArithmetic) can't
match those criteria.

Replace it with an assert if that ever changes: at that point,
we might need to add back a splat BUILD_VECTOR.

llvm-svn: 266100
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp