https://bugs.llvm.org/show_bug.cgi?id=40387

            Bug ID: 40387
           Summary: [Optimization] Enable switch lookup tables in the AVR
                    backend
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: AVR
          Assignee: unassignedb...@nondot.org
          Reporter: m...@dylanmckay.io
                CC: llvm-bugs@lists.llvm.org

One example of a switch lookup table is the switch lookup table generated in
SimplifyCFG.

On AVR, a switch lookup table can only be placed into and loaded from program
memory if the MCU supports the LPM instruction. Otherwise, the table must be
loaded from RAM.

At the moment, switch lookup tables are broken on AVR.

There are two issues:

* https://github.com/avr-rust/rust/issues/47
* https://github.com/avr-rust/rust/issues/69

I have since disabled switch lookup tables on AVR to workaround these bugs.

We should get switch lookup tables working on AVR to enable more efficient
code.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to