[PATCH] D60811: [PowerPC] Fix wrong ElemSIze when calling isConsecutiveLS()
Zhang Kang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 18 00:22:36 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL358644: [PowerPC] Fix wrong ElemSIze when calling isConsecutiveLS() (authored by ZhangKang, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D60811?vs=195507&id=195681#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60811/new/
https://reviews.llvm.org/D60811
Files:
llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/trunk/test/CodeGen/PowerPC/pr41177.ll
Index: llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp
===================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp
+++ llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -12175,7 +12175,7 @@
SDLoc dl(N);
bool InputsAreConsecutiveLoads = true;
bool InputsAreReverseConsecutive = true;
- unsigned ElemSize = N->getValueType(0).getScalarSizeInBits() / 8;
+ unsigned ElemSize = N->getValueType(0).getScalarType().getStoreSize();
SDValue FirstInput = N->getOperand(0);
bool IsRoundOfExtLoad = false;
Index: llvm/trunk/test/CodeGen/PowerPC/pr41177.ll
===================================================================
--- llvm/trunk/test/CodeGen/PowerPC/pr41177.ll
+++ llvm/trunk/test/CodeGen/PowerPC/pr41177.ll
@@ -0,0 +1,12 @@
+; RUN: llc -verify-machineinstrs -mcpu=pwr9 -mtriple=powerpc64le-unknown-linux-gnu < %s
+; REQUIRES: asserts
+
+define protected swiftcc void @"$s22LanguageServerProtocol13HoverResponseV8contents5rangeAcA13MarkupContentV_SnyAA8PositionVGSgtcfC"() {
+ %1 = load <2 x i64>, <2 x i64>* undef, align 16
+ %2 = load i1, i1* undef, align 8
+ %3 = insertelement <2 x i1> undef, i1 %2, i32 0
+ %4 = shufflevector <2 x i1> %3, <2 x i1> undef, <2 x i32> zeroinitializer
+ %5 = select <2 x i1> %4, <2 x i64> zeroinitializer, <2 x i64> %1
+ store <2 x i64> %5, <2 x i64>* undef, align 8
+ ret void
+}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60811.195681.patch
Type: text/x-patch
Size: 1407 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190418/74fc7070/attachment.bin>
More information about the llvm-commits
mailing list