[PATCH] [AArch64] enable rematerialization of float 0 values

Tim Northover t.p.northover at gmail.com
Fri Mar 20 13:31:59 PDT 2015


On 20 March 2015 at 12:57, Geoff Berry <gberry at codeaurora.org> wrote:
> Do you have any other ideas for generating a FMOV 0 that I can force to be spilled?

How about something like this:

define void @foo() {
  tail call void @bar(float 0.000000e+00)
  tail call void asm sideeffect "",
"~{s0},~{s1},~{s2},~{s3},~{s4},~{s5},~{s6},~{s7},~{s8},~{s9},~{s10},~{s11},~{s12},~{s13},~{s14},~{s15},~{s16},~{s17},~{s18},~{s19},~{s20},~{s21},~{s22},~{s23},~{s24},~{s25},~{s26},~{s27},~{s28},~{s29},~{s30},~{s31}"()
#2
  tail call void @bar(float 0.000000e+00)
  ret void
}

declare void @bar(float)



More information about the llvm-commits mailing list