[PATCH] D98098: [NFC][LoopUnroll] Add `-unroll-runtime-other-exit-predictable=false` in `runtime-multiexit-heuristic.ll`

Whitney Tsang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 5 19:37:49 PST 2021


Whitney created this revision.
Whitney added reviewers: Meinersbur, bmahjour.
Whitney added a project: LLVM.
Herald added a subscriber: zzheng.
Whitney requested review of this revision.
Herald added a subscriber: llvm-commits.

Added `-unroll-runtime-other-exit-predictable=false` in  `runtime-multiexit-heuristic.ll` to make it more robust.
`runtime-multiexit-heuristic.ll` intention is to test `-unroll-runtime-multi-exit=false`, so the default value of `-unroll-runtime-other-exit-predictable` should not impact the result.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D98098

Files:
  llvm/test/Transforms/LoopUnroll/runtime-multiexit-heuristic.ll


Index: llvm/test/Transforms/LoopUnroll/runtime-multiexit-heuristic.ll
===================================================================
--- llvm/test/Transforms/LoopUnroll/runtime-multiexit-heuristic.ll
+++ llvm/test/Transforms/LoopUnroll/runtime-multiexit-heuristic.ll
@@ -1,5 +1,5 @@
-; RUN: opt < %s -loop-unroll -unroll-runtime=true -verify-dom-info -verify-loop-info -instcombine -S | FileCheck %s
-; RUN: opt < %s -loop-unroll -unroll-runtime=true -verify-dom-info -unroll-runtime-multi-exit=false -verify-loop-info -S | FileCheck %s -check-prefix=NOUNROLL
+; RUN: opt < %s -unroll-runtime-other-exit-predictable=false -loop-unroll -unroll-runtime=true -verify-dom-info -verify-loop-info -instcombine -S | FileCheck %s
+; RUN: opt < %s -unroll-runtime-other-exit-predictable=false -loop-unroll -unroll-runtime=true -verify-dom-info -unroll-runtime-multi-exit=false -verify-loop-info -S | FileCheck %s -check-prefix=NOUNROLL
 
 ; this tests when unrolling multiple exit loop occurs by default (i.e. without specifying -unroll-runtime-multi-exit)
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98098.328722.patch
Type: text/x-patch
Size: 1055 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210306/676d185f/attachment.bin>


More information about the llvm-commits mailing list