Also updates isConstOrConstSplatFP to allow the mul(A,-1) -> neg(A)
transformation when -1 is expressed as an ISD::SPLAT_VECTOR.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM
There is a subtle wrong answers bug with this transform, but it's something that's under development separately. That is, FMUL(X,-1.0) != FNEG(X) when FTZ is enabled. We have a flag for checking the denormal mode, namely DenormalMode. We can address it later though. @arsenm