Displaying 1 result from an estimated 1 matches for "testsum".
Did you mean:
testsub
2016 Feb 12
3
Experimental 6502 backend; memory operand folding problem
...I currently solve this with
a custom ADD lowering function, see LowerADD in M6502ISelLowering.cpp.
Question: Is custom lowering ideal for this situation? Or, is there another way
to coax LLVM into recognizing ADD?
The problem I'm stuck on is folding memory operands. In the test file above,
in @testSum, switch %a, %b to %b, %a. llc will assert in Register Spilling:
"Remaining use wasn't a snippet copy". Debug output shows STRabs being
generated,
followed by an attempted fold of a stack-load into ADDabs.
I must be on the wrong track in M6502InstrInfo::foldMemoryOperandImpl. If
someo...