[PATCH] D156124: LoopVectorize/iv-select-cmp: add test for wide trip count (NFC)

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 26 06:44:29 PDT 2023


fhahn added inline comments.


================
Comment at: llvm/test/Transforms/LoopVectorize/iv-select-cmp.ll:77
+  %cmp5 = icmp sgt i32 %n, 0
+  br i1 %cmp5, label %for.body.preheader, label %for.cond.cleanup
+
----------------
Is this needed?


================
Comment at: llvm/test/Transforms/LoopVectorize/iv-select-cmp.ll:80
+for.body.preheader:                               ; preds = %entry
+  %wide.trip.count = zext i32 %n to i64
+  br label %for.body
----------------
nit: pass as i64?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D156124/new/

https://reviews.llvm.org/D156124



More information about the llvm-commits mailing list