Retain floating-point math flags inside instCombineSVEVectorBinOp
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Looks reasonable to me but I had a hand in it. Please wait 24h to give other reviewers a chance to chime in.
llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp | ||
---|---|---|
713 | nit: I'm not sure where the additional cosmetic code changes came from? It looks like you only really need to add the setFastMathFlags line? |
llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp | ||
---|---|---|
713 | we had a short discussion about what looks better and might be easier to read, debug and work with. its a simple change if you disagree |
llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp | ||
---|---|---|
713 | For what it's worth I provoked this by suggesting in private that I wanted to see the parameter to IC.replaceInstUsesWith as its own variable in the original patch, and to generally avoid putting too much into a single line, for readability. In the case of extracting OpPredicate I agree that it is marginal. |
LGTM!
llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp | ||
---|---|---|
713 | No problem, thanks for the explanation! Happy with the patch |
nit: I'm not sure where the additional cosmetic code changes came from? It looks like you only really need to add the setFastMathFlags line?