Teach MachineLICM to unfold loads from constant memory from
[oota-llvm.git] / test / CodeGen / X86 / pic-load-remat.ll
index 77297521cd0d864e0415aa2e61b6893852034063..d930f76a7747ed5c5160dad6741421f34495dad0 100644 (file)
@@ -1,4 +1,10 @@
 ; RUN: llc < %s -mtriple=i686-apple-darwin -mattr=+sse2 -relocation-model=pic | grep psllw | grep pb
+; XFAIL: *
+
+; This is XFAIL'd because MachineLICM is now hoisting all of the loads, and the pic
+; base appears killed in the entry block when remat is making its decisions. Remat's
+; simple heuristic decides against rematting because it doesn't want to extend the
+; live-range of the pic base; this isn't necessarily optimal.
 
 define void @f() nounwind  {
 entry: