[PATCH] D47947: [mips] Support shrink-wrapping
Simon Dardis via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 12 09:20:54 PDT 2018
sdardis added inline comments.
================
Comment at: test/CodeGen/Mips/shrink-wrapping.ll:3
+
+; RUN: llc -mtriple=mips-unknown-linux-gnu -enable-shrink-wrap=true \
+; RUN: -relocation-model=static < %s | \
----------------
Can you also add mips64 tests?
================
Comment at: test/CodeGen/Mips/shrink-wrapping.ll:192-195
+ %a.addr = alloca i32, align 4
+ store i32 %a, i32* %a.addr, align 4
+ %0 = load i32, i32* %a.addr, align 4
+ %cmp = icmp ne i32 %0, 4
----------------
Can you remove this alloca, we need to expose the jump in such a way that the shrink wrapping pass tries to move the prologue past it.
Repository:
rL LLVM
https://reviews.llvm.org/D47947
More information about the llvm-commits
mailing list