Refactor isValidAssumeForContext to reduce duplication and indentation. NFC.
authorPete Cooper <peter_cooper@apple.com>
Fri, 12 Aug 2016 01:00:15 +0000 (01:00 +0000)
committerPete Cooper <peter_cooper@apple.com>
Fri, 12 Aug 2016 01:00:15 +0000 (01:00 +0000)
commit54a0255679f2a68ba166b0051a87b5175ca6d0d3
tree75e82a25e7c7d591b0f15daac3d73cdbc0f81b1c
parent2de509c370a7af9d51ef9a32e2b4f299b71cc088
Refactor isValidAssumeForContext to reduce duplication and indentation.  NFC.

This method had some duplicate code when we did or did not have a dom tree.  Refactor
it to remove the duplication, but also clean up the control flow to have less duplication.

llvm-svn: 278450
llvm/lib/Analysis/ValueTracking.cpp