In ScalarEvolution::print, don't bother printing out the SCEVs for
authorDan Gohman <gohman@apple.com>
Mon, 3 May 2010 17:03:23 +0000 (17:03 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 3 May 2010 17:03:23 +0000 (17:03 +0000)
comparison instructions, since they aren't interesting, despite having
integer result types.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102925 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/ScalarEvolution.cpp

index 2a502cd22c9ad5ac81be20e44eec5206a711f2f6..f0cb7986bd8da3269f6451ffad57d1a886303854 100644 (file)
@@ -5767,7 +5767,7 @@ void ScalarEvolution::print(raw_ostream &OS, const Module *) const {
   WriteAsOperand(OS, F, /*PrintType=*/false);
   OS << "\n";
   for (inst_iterator I = inst_begin(F), E = inst_end(F); I != E; ++I)
-    if (isSCEVable(I->getType())) {
+    if (isSCEVable(I->getType()) && !isa<CmpInst>(*I)) {
       OS << *I << '\n';
       OS << "  -->  ";
       const SCEV *SV = SE.getSCEV(&*I);