[ARM] Promote helper function to SelectionDAG.
authorChad Rosier <mcrosier@codeaurora.org>
Wed, 7 Oct 2015 17:28:58 +0000 (17:28 +0000)
committerChad Rosier <mcrosier@codeaurora.org>
Wed, 7 Oct 2015 17:28:58 +0000 (17:28 +0000)
commitcc78fcae6aa37bc854138dc874f1d262079c5e7f
tree4ee582898c30fe9f67f5f70f9edba445246681fa
parentfc2e5ea5d91819f4ccaf3d23f2379ee9ee24ad41
[ARM] Promote helper function to SelectionDAG.

I'll be using the function in a similar combine for AArch64.  The helper was
also improved to handle undef values.

Part of http://reviews.llvm.org/D13442

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249572 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/SelectionDAGNodes.h
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
lib/Target/ARM/ARMISelLowering.cpp
test/CodeGen/ARM/vdiv_combine.ll