[SCEV] Replace some hasFlags calls with hasNo(Un)SignedWrap (NFC). (#190352)

This is slightly more compact and reduces diff when switching to enum
class (https://github.com/llvm/llvm-project/pull/190199).

PR: https://github.com/llvm/llvm-project/pull/190352
GitOrigin-RevId: 7edf8a7b51bb411a7e13bcd5496fc70d3c6be888
1 file changed