Enable the assert that got all this dominator work started.
authorRafael Espindola <rafael.espindola@gmail.com>
Sun, 26 Feb 2012 02:29:18 +0000 (02:29 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sun, 26 Feb 2012 02:29:18 +0000 (02:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151471 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/ScalarEvolutionExpander.cpp

index c83abd2e72b7f98c08a11c6358f15b95a63be5a6..c185502afb005e6cc5028477f8da3cf397d98651 100644 (file)
@@ -44,7 +44,7 @@ Value *SCEVExpander::ReuseOrCreateCast(Value *V, Type *Ty,
   BasicBlock::iterator BIP = Builder.GetInsertPoint();
 
   // FIXME: enable once our implementation of dominates is fixed.
-  //  assert(BIP == IP || SE.DT->dominates(IP, BIP));
+  assert(BIP == IP || SE.DT->dominates(IP, BIP));
 
   // Check to see if there is already a cast!
   for (Value::use_iterator UI = V->use_begin(), E = V->use_end();