[DAGCombiner] ISD::SDIV/UDIV/SREM/UREM - use general SelectionDAG::FoldConstantArithmetic
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 30 Jan 2020 11:49:49 +0000 (11:49 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 30 Jan 2020 12:02:52 +0000 (12:02 +0000)
commita967aa27068467340975e7bf5b2582c920711e87
tree3508ff0f120cbeb681da14103d94354b3c731e2d
parentd242aa245ccfaa527d27c75e50f9b73223aec14b
[DAGCombiner] ISD::SDIV/UDIV/SREM/UREM - use general SelectionDAG::FoldConstantArithmetic

This handles all the constant splat / opaque testing for us.
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp