This is the FP counterpart that was mentioned in PR35709:
https://bugs.llvm.org/show_bug.cgi?id=35709
I suspect we're missing other similar basic folds for FP reassociations.
Differential D42385
[InstSimplify] (X * Y) / Y --> X for relaxed floating-point ops spatel on Jan 22 2018, 10:52 AM. Authored by
Details This is the FP counterpart that was mentioned in PR35709: I suspect we're missing other similar basic folds for FP reassociations.
Diff Detail Event Timeline
|
for these kinds of identities, should we not be matching
?
i.e. whereever we are searching inside a group, we should scan until we hit a non-associative operator or an operator of different precedence ?