Issue 139078
Summary [GlobalISel] Indirectify memory inputs for inline assembly
Labels miscompilation, llvm:globalisel
Assignees
Reporter Pierre-vh
    We want memory input operands to be indirect in inline assembly, and if that's not the case then lowering fails.
https://github.com/llvm/llvm-project/pull/139077 was twice reverted because of it.

It looks like all we need to do is store the value on the stack then return the address of the stack slot to "indirectify" the input. Constants can be handled through the constant pool

see `getAddressForMemoryInput` in `SelectionDAGBuilder.cpp`
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to