Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
There might be some cases where we can maintain some fast-math flags that would otherwise be dropped... but it's almost certainly not worth the bother here, since I expect the vast majority of cases will have all the relevant operations have the same fast-math flags.
llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp | ||
---|---|---|
2443–2446 | It took me some thinking through all the cases, but I'm now convinced that it's required that both the fneg and copysign *need* to get the intersection of fast-math flags. |
Comment Actions
llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp | ||
---|---|---|
2443–2446 | I eventually just wrote out all the cases and let alive2 tell me it was wrong |
It took me some thinking through all the cases, but I'm now convinced that it's required that both the fneg and copysign *need* to get the intersection of fast-math flags.