search for: cpw_sf

Displaying 1 result from an estimated 1 matches for "cpw_sf".

Did you mean: cpw_sr
2019 Aug 23
2
Using [GlobalISel] to provide peephole optimizations
...tructions to exist on the input side of Pat<>, and using the same InstructionSelector we already have to reselect. To my surprise... not many changes are required to seemingly make this work: // fold loads in to compare instructions def : Pat<(CPw_sr i32:$k, (MOVw_wf iPTR:$s)), (CPw_sf i32:$k, iPTR:$s)>; And it looks like SDNodeXForms will work off the bat, along with complex renderers. The main catches being with constants that require checking (due G_CONSTANT being handled differently to immediates), along with needing to add checks that the instruction has the same implici...