Add an m_Div pattern for matching either a udiv or an sdiv and use it
authorDuncan Sands <baldrick@free.fr>
Mon, 7 Feb 2011 09:36:32 +0000 (09:36 +0000)
committerDuncan Sands <baldrick@free.fr>
Mon, 7 Feb 2011 09:36:32 +0000 (09:36 +0000)
commit163a84bbce69947aa314760e6068c704fc0df7a0
tree4c45912de2fe18eee154b43593182969e3479ce7
parent1dbf0df996bba398a70abccc714b1a9652330014
Add an m_Div pattern for matching either a udiv or an sdiv and use it
to simplify the "(X/Y)*Y->X when the division is exact" transform.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125004 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/PatternMatch.h
lib/Analysis/InstructionSimplify.cpp