Minor tweak to MDA
authorPhilip Reames <listmail@philipreames.com>
Fri, 13 Feb 2015 23:08:37 +0000 (23:08 +0000)
committerPhilip Reames <listmail@philipreames.com>
Fri, 13 Feb 2015 23:08:37 +0000 (23:08 +0000)
commit8c6097d490256cd3a89b185feb401c63ff5805d1
treef739b39fc24e418cf01721ae638a4b0ef3daea99
parent845c00e2e6261b17ff47af2774492b21b7a8a96c
Minor tweak to MDA

Two minor tweaks I noticed when reading through the code:
- No need to recompute begin() on every iteration.  We're not modifying the instructions in this loop.
- We can ignore PHINodes and Dbg intrinsics.  The current code does this anyways, but it will spend slightly more time doing so and will count towards the limit of instructions in the block.  It seems really silly to give up due the presence of PHIs...

Differential Revision: http://reviews.llvm.org/D7624

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229175 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/MemoryDependenceAnalysis.cpp