OSDN Git Service

[DAG] refactor related div/rem folds; NFCI
authorSanjay Patel <spatel@rotateright.com>
Mon, 6 Mar 2017 22:32:40 +0000 (22:32 +0000)
committerSanjay Patel <spatel@rotateright.com>
Mon, 6 Mar 2017 22:32:40 +0000 (22:32 +0000)
commit5e80a82489f3efcdb337e98d4eed619d4573f262
tree21a66c7555cfb02b9da1baabacdc7c5ccfc097f8
parent185574749e5c864ab46938815730fc76bc01650f
[DAG] refactor related div/rem folds; NFCI

This is known incomplete and not called in the right order relative to
other folds, but that's the current behavior. I'm just trying to clean
this up before making actual functional changes to make the patch smaller.

The logic here should mimic the IR equivalents that are in InstSimplify's
simplifyDivRem().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297086 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp