[DAG] Move integer setcc %x, %x folding into FoldSetCC
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 13 Mar 2019 11:08:57 +0000 (11:08 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 13 Mar 2019 11:08:57 +0000 (11:08 +0000)
commit360ce82db2b742655d33b4a0977bbcf9e7af82d1
treec7239b05ac795e331c187830c8ba3fed19583cb4
parentc2b975a75cad1d8b0beeb532cc375432dc62f900
[DAG] Move integer setcc %x, %x folding into FoldSetCC

First step towards PR40800 - I intend to move the float case in a separate future patch.

I had to tweak the (overly reduced) thumb2 test and the x86 widening test change is annoying (no longer rematerializable) but we should address this separately.

Differential Revision: https://reviews.llvm.org/D59244

llvm-svn: 356040
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/test/CodeGen/AArch64/fast-isel-cmp-vec.ll
llvm/test/CodeGen/Thumb2/cross-rc-coalescing-2.ll
llvm/test/CodeGen/X86/widen_compare-1.ll