Skip to content
  1. Jan 19, 2005
  2. Jan 18, 2005
  3. Jan 17, 2005
    • Chris Lattner's avatar
      Do not give token factor nodes outrageous weights · ca318edb
      Chris Lattner authored
      llvm-svn: 19645
      ca318edb
    • Chris Lattner's avatar
      Non-volatile loads can be freely reordered against each other. This fixes · 4d9651c7
      Chris Lattner authored
      X86/reg-pressure.ll again, and allows us to do nice things in other cases.
      For example, we now codegen this sort of thing:
      
      int %loadload(int *%X, int* %Y) {
        %Z = load int* %Y
        %Y = load int* %X      ;; load between %Z and store
        %Q = add int %Z, 1
        store int %Q, int* %Y
        ret int %Y
      }
      
      Into this:
      
      loadload:
              mov %EAX, DWORD PTR [%ESP + 4]
              mov %EAX, DWORD PTR [%EAX]
              mov %ECX, DWORD PTR [%ESP + 8]
              inc DWORD PTR [%ECX]
              ret
      
      where we weren't able to form the 'inc [mem]' before.  This also lets the
      instruction selector emit loads in any order it wants to, which can be good
      for register pressure as well.
      
      llvm-svn: 19644
      4d9651c7
Loading