Decompose GVN::processNonLocalLoad() (about 400 LOC) into smaller helper functions...
authorShuxin Yang <shuxin.llvm@gmail.com>
Fri, 3 May 2013 19:17:26 +0000 (19:17 +0000)
committerShuxin Yang <shuxin.llvm@gmail.com>
Fri, 3 May 2013 19:17:26 +0000 (19:17 +0000)
commit968d689ec30a0df63d252b8193664e01944edb8b
treecd3b7cd4a5bbe76c9aa768b01266bbbc210c5e8b
parenta2b2200ff8684ba23c64b24c0128a78f4b6e3c73
Decompose GVN::processNonLocalLoad() (about 400 LOC) into smaller helper functions. No function change.

This function consists of following steps:
   1. Collect dependent memory accesses.
   2. Analyze availability.
   3. Perform fully redundancy elimination, or
   4. Perform PRE, depending on the availability

 Step 2, 3 and 4 are now moved to three helper routines.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181047 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/GVN.cpp