[PATCH] D50482: Added another optimization pass to make vectorizing possible
Emmett Neyman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 8 17:43:25 PDT 2018
emmettneyman added inline comments.
================
Comment at: clang/tools/clang-fuzzer/handle-llvm/handle_llvm.cpp:103
+ Triple ModuleTriple(M->getTargetTriple());
+ const TargetOptions Options = InitTargetOptionsFromCodeGenFlags();
----------------
morehouse wrote:
> I think you can avoid creating a Triple and instead just call `M->getTargetTriple()` in `lookupTarget` below.
`M->getTargetTriple()` returns a `std::string` and both `lookupTarget()` and `TargetLibraryInfoWrapperPass()` take a `Triple` object.
Repository:
rC Clang
https://reviews.llvm.org/D50482
More information about the cfe-commits
mailing list