diff options
author | Arnold Schwaighofer <aschwaighofer@apple.com> | 2013-08-06 22:37:52 +0000 |
---|---|---|
committer | Arnold Schwaighofer <aschwaighofer@apple.com> | 2013-08-06 22:37:52 +0000 |
commit | a7cd6bf3bbf9d1efc2ec7b9c617209408caf6a86 (patch) | |
tree | 7969a5f4252c06817516a6b923df7e9b3b4e5a03 /llvm/lib/CodeGen/BasicTargetTransformInfo.cpp | |
parent | e2a39e753207e50c58ea9562492424416cc0dd2b (diff) | |
download | bcm5719-llvm-a7cd6bf3bbf9d1efc2ec7b9c617209408caf6a86.tar.gz bcm5719-llvm-a7cd6bf3bbf9d1efc2ec7b9c617209408caf6a86.zip |
LoopVectorize: Allow vectorization of loops with lifetime markers
Patch by Marc Jessome!
llvm-svn: 187825
Diffstat (limited to 'llvm/lib/CodeGen/BasicTargetTransformInfo.cpp')
-rw-r--r-- | llvm/lib/CodeGen/BasicTargetTransformInfo.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/BasicTargetTransformInfo.cpp b/llvm/lib/CodeGen/BasicTargetTransformInfo.cpp index cb12a40ff0f..b48b81767ee 100644 --- a/llvm/lib/CodeGen/BasicTargetTransformInfo.cpp +++ b/llvm/lib/CodeGen/BasicTargetTransformInfo.cpp @@ -452,6 +452,9 @@ unsigned BasicTTI::getIntrinsicInstrCost(Intrinsic::ID IID, Type *RetTy, case Intrinsic::pow: ISD = ISD::FPOW; break; case Intrinsic::fma: ISD = ISD::FMA; break; case Intrinsic::fmuladd: ISD = ISD::FMA; break; // FIXME: mul + add? + case Intrinsic::lifetime_start: + case Intrinsic::lifetime_end: + return 0; } const TargetLoweringBase *TLI = getTLI(); |