Defer unnecessary early inlining of constants to symbol
variants. Fixes PR38945.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
llvm/lib/MC/MCParser/AsmParser.cpp | ||
---|---|---|
1128 ↗ | (On Diff #165812) | I'm not super enthused about relying on the enum's value being zero as opposed to checking that Variant == MCSymbolRefExpr::VK_None, but it looks like it's done so anyways on L1132, so I guess it's fine. |
llvm/test/MC/PowerPC/pr38945.s | ||
9 ↗ | (On Diff #165812) | Can you add a test for the - prefix for negating the number, too (assuming it works and doesn't need additional code changed)? ie cmpwi 8,(-NUMBER)@l cmpwi 8,-NUMBER@l |