[PATCH] D20702: [ARM] Shrink post-indexed LDR and STR to LDM/STM
Diana Picus via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 1 06:08:08 PDT 2016
rovka added a subscriber: rovka.
================
Comment at: test/CodeGen/ARM/t2-shrink-ldrpost.ll:4
@@ +3,3 @@
+target datalayout = "e-m:e-p:32:32-i1:8:32-i8:8:32-i16:16:32-f64:32:64-v64:32:64-v128:32:128-a:0:32-n32-S32"
+target triple = "thumbv7m--linux-gnu"
+
----------------
Can you use armv7m + mthumb instead?
================
Comment at: test/CodeGen/ARM/t2-shrink-ldrpost.ll:10
@@ +9,3 @@
+; CHECK: stm r{{[0-9]}}!, {r[[x]]}
+define void @f(i32 %n, i32* nocapture %a, i32* nocapture readonly %b) optsize minsize {
+ %1 = icmp sgt i32 %n, 0
----------------
I think it would be a good idea to add a test case without minsize, to make sure it doesn't trigger there.
Repository:
rL LLVM
http://reviews.llvm.org/D20702
More information about the llvm-commits
mailing list