Revert "[CodeGen] Temporarily disable-lsr in HWASAN build"
authorVitaly Buka <vitalybuka@google.com>
Fri, 30 Dec 2022 18:57:12 +0000 (10:57 -0800)
committerVitaly Buka <vitalybuka@google.com>
Fri, 30 Dec 2022 18:57:49 +0000 (10:57 -0800)
We can do the same with cmake on the bot.

This reverts commit 8f70b848d339cabfaa8f1379d41dae11b9b75014.

llvm/lib/CodeGen/TargetPassConfig.cpp

index 9bf3215..115f266 100644 (file)
@@ -89,12 +89,8 @@ static cl::opt<bool> DisableMachineSink("disable-machine-sink", cl::Hidden,
 static cl::opt<bool> DisablePostRAMachineSink("disable-postra-machine-sink",
     cl::Hidden,
     cl::desc("Disable PostRA Machine Sinking"));
-static cl::opt<bool>
-    DisableLSR("disable-lsr", cl::Hidden,
-               cl::desc("Disable Loop Strength Reduction Pass"),
-               // FIXME: Investigate and re-enable. HWASAN exposes some
-               // non-determinism in the pass.
-               cl::init(LLVM_HWADDRESS_SANITIZER_BUILD));
+static cl::opt<bool> DisableLSR("disable-lsr", cl::Hidden,
+    cl::desc("Disable Loop Strength Reduction Pass"));
 static cl::opt<bool> DisableConstantHoisting("disable-constant-hoisting",
     cl::Hidden, cl::desc("Disable ConstantHoisting"));
 static cl::opt<bool> DisableCGP("disable-cgp", cl::Hidden,