[PATCH] D15281: [ARMv8-M] [8/9] Add new system registers to ARMv8-M Baseline/Mainline

Bradley Smith via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 14 07:26:23 PST 2016


bsmith added inline comments.

================
Comment at: lib/Target/ARM/ARMISelDAGToDAG.cpp:3765
@@ +3764,3 @@
+      Flags = Flags.drop_front(3);
+      if (Flags.startswith("_"))
+        Flags = Flags.drop_front();
----------------
t.p.northover wrote:
> bsmith wrote:
> > t.p.northover wrote:
> > > Won't this allow "basepri_maxns"? Seems a bit inconsistent with the others.
> > It will reconstruct Reg = basepri, Flags = max{_ns,} into Reg = basepri_max, Flags = {ns,}, the call to getMClassRegisterMask afterwards will check whether or not the ns flags are allowed.
> But what if the second '_' is skipped? It looks like we'd treat Flags == "max_ns" and Flags == "maxns" equivalently, which seems like an unnecessary quirk.
Ah, I see what you meant now, I'll fix it.


Repository:
  rL LLVM

http://reviews.llvm.org/D15281





More information about the llvm-commits mailing list