[PATCH] D31188: [AntiDepBreaker] Do not use getPristineRegs for marking live registers.

Matthias Braun via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 21 08:48:15 PDT 2017

MatzeB added inline comments.

Comment at: llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp:166-171
+    assert(MF.getFrameInfo().isCalleeSavedInfoValid());
+    const auto &CSI = MFI.getCalleeSavedInfo();
+    return find_if(CSI.begin(), CSI.end(), [Reg](const CalleeSavedInfo &C) {
+             return C.getReg() == Reg;
+           }) != CSI.end();
+  };
This looks like you are replacing the check for pristine regs with manually written code that does the same. Am I missing something?


More information about the llvm-commits mailing list