[llvm-commits] [llvm] r151136 - /llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp
Andrew Trick
atrick at apple.com
Wed Feb 22 10:35:53 PST 2012
On Feb 22, 2012, at 10:09 AM, Jakob Stoklund Olesen <stoklund at 2pi.dk> wrote:
>
> On Feb 21, 2012, at 10:08 PM, Andrew Trick <atrick at apple.com> wrote:
>
>>
>> + // SSA defs do not have output/anti dependencies.
>> + if (llvm::next(MRI.def_begin(Reg)) == MRI.def_end())
>> + return;
>> +
>
> Note that after ProcessImplicitDefs, virtual registers may not have a def, and next(def_begin) is not allowed. (It's fine in this case because the code is explicitly handling a def of Reg).
>
> Should this be a method on MRI, like MRI::hasOneUse?
I'm the only client for now, and was taking advantage of the fact that we're already explicitly processing a def of the reg. More comments on the way.
-Andy
More information about the llvm-commits
mailing list