https://codereview.appspot.com/6635055/diff/1/lib/CodeGen/BackendUtil.cpp File lib/CodeGen/BackendUtil.cpp (right): https://codereview.appspot.com/6635055/diff/1/lib/CodeGen/BackendUtil.cpp#newcode133 lib/CodeGen/BackendUtil.cpp:133: PM.add(new ScalarEvolution()); I wonder if we can move this ...
12 years, 3 months ago
(2012-10-18 07:31:42 UTC)
#1
12 years, 3 months ago
(2012-10-18 10:24:41 UTC)
#2
On 2012/10/18 07:31:42, kcc2 wrote:
> https://codereview.appspot.com/6635055/diff/1/lib/CodeGen/BackendUtil.cpp
> File lib/CodeGen/BackendUtil.cpp (right):
>
>
https://codereview.appspot.com/6635055/diff/1/lib/CodeGen/BackendUtil.cpp#new...
> lib/CodeGen/BackendUtil.cpp:133: PM.add(new ScalarEvolution());
> I wonder if we can move this somewhere into LLVM code and under the
> -asan-opt-known-bounds flag
In theory we could use the analysis only if the flag is set and the analysis
happens to be available (getAnalysisIfAvailable) but I am not aware of a way of
doing this that would always work when we want it to.
I can live w/o ability to disable ScalarEvolution in asan pass. But I still don't ...
12 years, 3 months ago
(2012-10-25 09:14:03 UTC)
#5
I can live w/o ability to disable ScalarEvolution in asan pass.
But I still don't like the fact that we are changing clang to get llvm-only
effect.
In llvm, I see quite a few uses of INITIALIZE_PASS_DEPENDENCY(ScalarEvolution)
Doesn't it work here?
On 2012/10/25 09:14:03, kcc2 wrote: > I can live w/o ability to disable ScalarEvolution in ...
12 years, 3 months ago
(2012-10-26 07:35:15 UTC)
#6
On 2012/10/25 09:14:03, kcc2 wrote:
> I can live w/o ability to disable ScalarEvolution in asan pass.
>
> But I still don't like the fact that we are changing clang to get llvm-only
> effect.
> In llvm, I see quite a few uses of INITIALIZE_PASS_DEPENDENCY(ScalarEvolution)
>
> Doesn't it work here?
It seemed to make no difference as clang still needed the explicit pass
creation.
It worked automatically using the opt tool either way.
Issue 6635055: Add a known bounds optimization to ASan (Clang).
Created 12 years, 3 months ago by otinn
Modified 12 years, 3 months ago
Reviewers: kcc1, kcc2, samsonov
Base URL:
Comments: 2