Skip to content
  • Dan Gohman's avatar
    Treat EntryToken nodes as "passive" so that they aren't added to the · 4370f267
    Dan Gohman authored
    ScheduleDAG; they don't correspond to any actual instructions so they
    don't need to be scheduled.
    
    This fixes a bug where the EntryToken was being scheduled multiple
    times in some cases, though it ended up not causing any trouble because 
    EntryToken doesn't expand into anything. With this fixed the schedulers
    reliably schedule the expected number of units, so we can check this
    with an assertion.
    
    This requires a tweak to test/CodeGen/X86/loop-hoist.ll because it
    ends up getting scheduled differently in a trivial way, though it was
    enough to fool the prcontext+grep that the test does.
    
    llvm-svn: 49701
    4370f267
Loading