[PATCH] D132408: [SimplifyCFG] accumulate bonus insts cost

Artem Belevich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 29 10:53:57 PDT 2022


tra accepted this revision.
tra added inline comments.
This revision is now accepted and ready to land.


================
Comment at: llvm/test/Transforms/SimplifyCFG/branch-fold-unrolled-loop.ll:8
+; CHECK-LABEL: define {{.*}}@test(
+; CHECK-LABEL: entry:
+; CHECK:       %arrayidx = getelementptr inbounds %struct.S, %struct.S* %this, i64 0, i32 0, i64 0
----------------
It's not quite clear what's the purpose of this test. I.e. what are the important pieces of the checks below?

I'd add a comment describing expected transformation.


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

https://reviews.llvm.org/D132408



More information about the llvm-commits mailing list