This revision was automatically updated to reflect the committed changes.
Closed by commit rL339392: Added LLVM metadata to generated IR to increase
vectorization width (authored by emmettneyman, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D50530?vs=160016&id=160017#toc
R
emmettneyman updated this revision to Diff 160016.
emmettneyman added a comment.
Rebased and ready to land
Repository:
rC Clang
https://reviews.llvm.org/D50530
Files:
clang/tools/clang-fuzzer/proto-to-llvm/loop_proto_to_llvm.cpp
Index: clang/tools/clang-fuzzer/proto-to-llvm/loop_proto_to
morehouse accepted this revision.
morehouse added a comment.
This revision is now accepted and ready to land.
Code LGTM, but let's make sure this actually helps before landing.
Repository:
rC Clang
https://reviews.llvm.org/D50530
___
cfe-commits
emmettneyman updated this revision to Diff 159993.
emmettneyman added a comment.
Switched the include statement to the cpp file
Repository:
rC Clang
https://reviews.llvm.org/D50530
Files:
clang/tools/clang-fuzzer/proto-to-llvm/loop_proto_to_llvm.cpp
Index: clang/tools/clang-fuzzer/proto-
emmettneyman added inline comments.
Comment at: clang/tools/clang-fuzzer/proto-to-llvm/loop_proto_to_llvm.cpp:141
+<< "!1 = !{!\"llvm.loop.vectorize.enable\", i1 true}\n"
+<< "!2 = !{!\"llvm.loop.vectorize.width\", i32 " << kArraySize
+<< "}\n"
morehouse added inline comments.
Comment at: clang/tools/clang-fuzzer/proto-to-llvm/loop_proto_to_llvm.cpp:141
+<< "!1 = !{!\"llvm.loop.vectorize.enable\", i1 true}\n"
+<< "!2 = !{!\"llvm.loop.vectorize.width\", i32 " << kArraySize
+<< "}\n";
-
emmettneyman created this revision.
emmettneyman added reviewers: morehouse, kcc.
Herald added a subscriber: cfe-commits.
Edited `loop_proto_to_llvm` to emit metadata at the end of the generated IR.
This metadata will increase the vector width when the IR is optimized.
Repository:
rC Clang
h