From 6f3400e38041fc2fdfb50b2e831d9698bd5c77a1 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Fri, 30 Dec 2022 10:57:12 -0800 Subject: [PATCH] Revert "[CodeGen] Temporarily disable-lsr in HWASAN build" We can do the same with cmake on the bot. This reverts commit 8f70b848d339cabfaa8f1379d41dae11b9b75014. --- llvm/lib/CodeGen/TargetPassConfig.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/llvm/lib/CodeGen/TargetPassConfig.cpp b/llvm/lib/CodeGen/TargetPassConfig.cpp index 9bf3215..115f266 100644 --- a/llvm/lib/CodeGen/TargetPassConfig.cpp +++ b/llvm/lib/CodeGen/TargetPassConfig.cpp @@ -89,12 +89,8 @@ static cl::opt DisableMachineSink("disable-machine-sink", cl::Hidden, static cl::opt DisablePostRAMachineSink("disable-postra-machine-sink", cl::Hidden, cl::desc("Disable PostRA Machine Sinking")); -static cl::opt - 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 DisableLSR("disable-lsr", cl::Hidden, + cl::desc("Disable Loop Strength Reduction Pass")); static cl::opt DisableConstantHoisting("disable-constant-hoisting", cl::Hidden, cl::desc("Disable ConstantHoisting")); static cl::opt DisableCGP("disable-cgp", cl::Hidden, -- 2.7.4