[llvm] 1f06398 - Reapply "[RISCV] Enable strict assertions in InsertVSETVLI data flow"

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Wed May 25 11:19:09 PDT 2022


Author: Philip Reames
Date: 2022-05-25T11:18:55-07:00
New Revision: 1f06398e96d4508d22f42b760f70eb5d4e7b1dc9

URL: https://github.com/llvm/llvm-project/commit/1f06398e96d4508d22f42b760f70eb5d4e7b1dc9
DIFF: https://github.com/llvm/llvm-project/commit/1f06398e96d4508d22f42b760f70eb5d4e7b1dc9.diff

LOG: Reapply "[RISCV] Enable strict assertions in InsertVSETVLI data flow"

be2cb8 fixes the case which triggered the revert.  Reapply, and let's see if anything else falls out.

Original commit message:

These asserts are believed to hold after several recent miscompiles have been fixed.  If you see an assertion failure on this change, please toggle the default back and make sure you file a bug with a reproducer.  We may have as yet uncaught miscompiles lurking in this code.

Differential Revision: https://reviews.llvm.org/D125271

Added: 
    

Modified: 
    llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp b/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
index 2ff2a60cc961..2fc29d0d067b 100644
--- a/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
+++ b/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
@@ -38,7 +38,7 @@ static cl::opt<bool> DisableInsertVSETVLPHIOpt(
     cl::desc("Disable looking through phis when inserting vsetvlis."));
 
 static cl::opt<bool> UseStrictAsserts(
-    "riscv-insert-vsetvl-strict-asserts", cl::init(false), cl::Hidden,
+    "riscv-insert-vsetvl-strict-asserts", cl::init(true), cl::Hidden,
     cl::desc("Enable strict assertion checking for the dataflow algorithm"));
 
 namespace {


        


More information about the llvm-commits mailing list