[PATCH] D32763: [PPC] Lower load acquire/seq_cst trailing fence to cmp + bne + isync.

Tim Shen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 5 11:45:15 PDT 2017


timshen added inline comments.


================
Comment at: llvm/lib/Target/PowerPC/PPCInstr64Bit.td:967
+
+let isBarrier = 1, isPseudo = 1, Defs = [CR7], Itinerary = IIC_LdStSync in
+def CFENCE8 : Pseudo<(outs), (ins g8rc:$cr), "#CFENCE8", []>;
----------------
kbarton wrote:
> Do we also need to mark Uses = [CR7]?
I'm not sure - what does Uses exactly mean?

I didn't add, because a search for "clobbers" in PPCInstr64Bit.td gives me examples that clobbers are added through "Defs" without "Uses".


https://reviews.llvm.org/D32763





More information about the llvm-commits mailing list