Fix for pr24866
authorPhilip Reames <listmail@philipreames.com>
Mon, 21 Sep 2015 22:04:10 +0000 (22:04 +0000)
committerPhilip Reames <listmail@philipreames.com>
Mon, 21 Sep 2015 22:04:10 +0000 (22:04 +0000)
commit270b82ade03ceb551dd077f17282e5a385d5e43b
tree74b12b8f191a9e39dd83feff1cd81f8b4de37b34
parent527648ee94e54df2e30c04489c4b88fca1343553
Fix for pr24866

Turns out that not every basic block is guaranteed to have a node within the DominatorTree.  This is really hard to trigger, but the test case from the PR managed to do so.  There's active discussion continuing about what documentation and/or invariants needed cleaned up.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248216 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ValueTracking.cpp
test/Analysis/ValueTracking/pr24866.ll [new file with mode: 0644]