aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2020-07-24 11:10:28 -0700
committerCraig Topper <craig.topper@intel.com>2020-07-24 11:14:20 -0700
commit945ed22f3397f52469618cd8a94207665f25bebd (patch)
treea733944c4040f7208a30f09f3c9aefbb89d22f97 /llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp
parent809600d6642773f71245f76995dab355effc73af (diff)
downloadllvm-945ed22f3397f52469618cd8a94207665f25bebd.zip
llvm-945ed22f3397f52469618cd8a94207665f25bebd.tar.gz
llvm-945ed22f3397f52469618cd8a94207665f25bebd.tar.bz2
[X86] Move the implicit enabling of sse2 for 64-bit mode from X86Subtarget::initSubtargetFeatures to X86_MC::ParseX86Triple.
ParseX86Triple already checks for 64-bit mode and produces a static string. We can just add +sse2 to the end of that static string. This avoids a potential reallocation when appending it to the std::string at runtime. This is a slight change to the behavior of tools that only use MC layer which weren't implicitly enabling sse2 before, but will now. I don't think we check for sse2 explicitly in any MC layer components so this shouldn't matter in practice. And if it did matter the new behavior is more correct.
Diffstat (limited to 'llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp')
0 files changed, 0 insertions, 0 deletions