]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/cmd/compile/internal/ssa/_gen/PPC64.rules
cmd/compile: adding rule to eliminate ANDCCconst
[gostls13.git] / src / cmd / compile / internal / ssa / _gen / PPC64.rules
index 5780260c24936f2c908fdee6afee2733edbe902c..c9cd34b9a67ce8e88f629251203ae59901c6c2cf 100644 (file)
 (AtomicOr(8|32)   ...) => (LoweredAtomicOr(8|32)   ...)
 
 (Slicemask <t> x) => (SRADconst (NEG <t> x) [63])
+(Select0 (ANDCCconst [1] z:(SRADconst [63] x))) && z.Uses == 1  => (SRDconst [63] x)
 
 // Note that MOV??reg returns a 64-bit int, x is not necessarily that wide
 // This may interact with other patterns in the future. (Compare with arm64)