[CodeGen] Temporarily disable-lsr in HWASAN build
authorVitaly Buka <vitalybuka@google.com>
Fri, 30 Dec 2022 07:25:22 +0000 (23:25 -0800)
committerVitaly Buka <vitalybuka@google.com>
Fri, 30 Dec 2022 07:37:49 +0000 (23:37 -0800)
commit8f70b848d339cabfaa8f1379d41dae11b9b75014
tree4425f184b5428a3ff9fdb0027f881ecfa49a3ccd
parenteda2eaabf2949c08ba94c92b9aad6fccb3c8eaa2
[CodeGen] Temporarily disable-lsr in HWASAN build

HWASAN exposes some non-determinism in the pass and triggers:
ScalarEvolution.cpp:11540: bool llvm::ScalarEvolution::isLoopEntryGuardedByCond(const Loop *, ICmpInst::Predicate, const SCEV *, const SCEV *): Assertion `isAvailableAtLoopEntry(LHS, L) && "LHS is not available at Loop Entry"' failed.

E.g.
https://lab.llvm.org/buildbot/#/builders/236/builds/1629/steps/16/logs/stdio
is broken after D137838. I tried to split D137838 into smaller patches
and the one which reproduced was just a move of cpp from one dir to another.

Maybe it has something do to with comparison of tagged pointeres and
PtrSets used in pass.

Issues is hard to reproduce, even slight changes in path, or preprocessing
cpp file hide it.
llvm/lib/CodeGen/TargetPassConfig.cpp