[AMDGPU] Code clean up and denorm check removal for bf16 omod folding (#219042)
This is the follow-up PR to address the additional comments and
suggestions from https://github.com/llvm/llvm-project/pull/218286
Use FP64FP16Denormals to check the output denomal flushing because
BF16 is usig the default.
Also clean up the surrounding code:
- src0_modifiers/src1_modifiers are always present on these packed
opcodes (VOP3P_Profile sets HasModifiers), so drop the null checks and
dereference the operands directly.
- Fix the comment on the modifier check: rather than "modifiers other
than op_sel_hi block folding", the point is that when omod is applied to
a packed instruction it only applies to the low half of the input and
output.
- In tryFoldOMod(), drop the redundant isReg()/isImm() checks when
looking through a REG_SEQUENCE; a 5-operand REG_SEQUENCE always has that
operand shape.