<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - 3+ minutes is spent in ScalarEvolution on a tiny test"
   href="https://bugs.llvm.org/show_bug.cgi?id=33753">33753</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>3+ minutes is spent in ScalarEvolution on a tiny test
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>kcc@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>on r307569

clang -cc1 -triple x86_64-unknown-linux-gnu  -O2  -emit-obj
slow-ScalarEvolution.cc

Most time is spent in ScalarEvolution::getAddExpr:

#24 0x000000000134118a in
llvm::ScalarEvolution::getAddExpr(llvm::SmallVectorImpl<llvm::SCEV const*>&,
llvm::SCEV::NoWrapFlags, unsigned int) ()
#25 0x000000000133f9a7 in
llvm::ScalarEvolution::getAddExpr(llvm::SmallVectorImpl<llvm::SCEV const*>&,
llvm::SCEV::NoWrapFlags, unsigned int) ()
#26 0x00000000013402d0 in
llvm::ScalarEvolution::getAddExpr(llvm::SmallVectorImpl<llvm::SCEV const*>&,
llvm::SCEV::NoWrapFlags, unsigned int) ()
#27 0x000000000134f5be in llvm::ScalarEvolution::createSCEV(llvm::Value*) ()
#28 0x000000000134bb01 in llvm::ScalarEvolution::getSCEV(llvm::Value*) ()
#29 0x0000000001a9271a in (anonymous
namespace)::LSRInstance::ChainInstruction(llvm::Instruction*,
llvm::Instruction*, llvm::SmallVectorImpl<(anonymous namespace)::ChainUsers>&)
()
#30 0x0000000001a81f7f in (anonymous
namespace)::LSRInstance::LSRInstance(llvm::Loop*, llvm::IVUsers&,
llvm::ScalarEvolution&, llvm::DominatorTree&, llvm::LoopInfo&,
llvm::TargetTransformInfo const&) ()
#31 0x0000000001a7ebdf in ReduceLoopStrength(llvm::Loop*, llvm::IVUsers&,
llvm::ScalarEvolution&, llvm::DominatorTree&, llvm::LoopInfo&,
llvm::TargetTransformInfo const&) ()
#32 0x0000000001307720 in llvm::LPPassManager::runOnFunction(llvm::Function&)
()


Found by an experimental clang-proto-fuzzer</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>