diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2016-04-24 19:31:56 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2016-04-24 19:31:56 +0000 |
commit | 4c564ad4dd3d69287edcd0890c6fb1cac4bafc05 (patch) | |
tree | 3fb2f79f7d5dd8325190e76377f9d73180e8bb49 /llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp | |
parent | 4b5462f1194ee3d6bf7862d0ad70159b5a27eced (diff) | |
download | bcm5719-llvm-4c564ad4dd3d69287edcd0890c6fb1cac4bafc05.tar.gz bcm5719-llvm-4c564ad4dd3d69287edcd0890c6fb1cac4bafc05.zip |
Tweak comments to make it clear that these combines are for SSE scalar instructions.
llvm-svn: 267360
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp b/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp index 856eb0c39c7..3930cc010a6 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp @@ -1179,7 +1179,7 @@ Value *InstCombiner::SimplifyDemandedVectorElts(Value *V, APInt DemandedElts, switch (II->getIntrinsicID()) { default: break; - // Unary vector operations that work column-wise. + // Unary scalar-as-vector operations that work column-wise. case Intrinsic::x86_sse_rcp_ss: case Intrinsic::x86_sse_rsqrt_ss: case Intrinsic::x86_sse_sqrt_ss: @@ -1193,11 +1193,12 @@ Value *InstCombiner::SimplifyDemandedVectorElts(Value *V, APInt DemandedElts, // If lowest element of a scalar op isn't used then use Arg0. if (DemandedElts.getLoBits(1) != 1) return II->getArgOperand(0); - // TODO: If only low elt lower SQRT to FSQRT (with rounding/exceptions checks). + // TODO: If only low elt lower SQRT to FSQRT (with rounding/exceptions + // checks). break; - // Binary vector operations that work column-wise. A dest element is a - // function of the corresponding input elements from the two inputs. + // Binary scalar-as-vector operations that work column-wise. A dest element + // is a function of the corresponding input elements from the two inputs. case Intrinsic::x86_sse_add_ss: case Intrinsic::x86_sse_sub_ss: case Intrinsic::x86_sse_mul_ss: |