changes for support LLVM trunk
Merge pull request #713 from ifilippov/perf_correction

Support of LLVM trunk after changes in 198438, 199041, 199082 revisions.