This adds a simple fold to combine VMOVrh load to a integer load. This is similar to what is already done for BITCAST, but needs to account for the types being of different sizes, creating an extending load.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Target/ARM/ARMISelLowering.cpp | ||
---|---|---|
12965 | Can you call the overload of getExtLoad() that takes a MachineMemOperand ? | |
12969 | I'd prefer to do all the replacements here, instead of relying on the caller to do the remaining replacement. This applies for all combines that are more complicated that replacing one node with another. |
llvm/lib/Target/ARM/ARMISelLowering.cpp | ||
---|---|---|
12969 | OK. I took the existing code from DAGCombine::visitBITCAST (but, you know, adjusted for different sizes). Let me know if the new code looks better. |
Can you call the overload of getExtLoad() that takes a MachineMemOperand ?