luaur_code_gen/methods/
ir_value_location_tracking_can_be_rematerialized.rs1use crate::enums::ir_cmd::IrCmd;
2use crate::records::ir_value_location_tracking::IrValueLocationTracking;
3
4impl IrValueLocationTracking {
5 pub fn can_be_rematerialized(&self, cmd: IrCmd) -> bool {
6 cmd == IrCmd::UINT_TO_NUM || cmd == IrCmd::INT_TO_NUM
7 }
8}