search for: cpw_sr

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

Did you mean: cpw_sf
2019 Aug 23
2
Using [GlobalISel] to provide peephole optimizations
...else that's coming, allowing Instructions 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...