[PATCH] D152518: [Scalarizer] Scalarize freeze instruction
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 9 04:17:16 PDT 2023
foad added reviewers: deadalnix, StephenFan, mgudim.
foad added inline comments.
================
Comment at: llvm/test/Transforms/Scalarizer/basic.ll:836-841
+; CHECK-NEXT: [[SRC_I0:%.*]] = extractelement <2 x i32> [[SRC:%.*]], i64 0
+; CHECK-NEXT: [[FRZ_I0:%.*]] = freeze i32 [[SRC_I0]]
+; CHECK-NEXT: [[SRC_I1:%.*]] = extractelement <2 x i32> [[SRC]], i64 1
+; CHECK-NEXT: [[FRZ_I1:%.*]] = freeze i32 [[SRC_I1]]
+; CHECK-NEXT: [[FRZ_UPTO0:%.*]] = insertelement <2 x i32> poison, i32 [[FRZ_I0]], i64 0
+; CHECK-NEXT: [[FRZ:%.*]] = insertelement <2 x i32> [[FRZ_UPTO0]], i32 [[FRZ_I1]], i64 1
----------------
The code is much more verbose here, but I assume this is what the scalarizer is supposed to do?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152518/new/
https://reviews.llvm.org/D152518
More information about the llvm-commits
mailing list