Details
Diff Detail
Event Timeline
Precommit test
| llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp | ||
|---|---|---|
| 2562–2563 | It's not behaviorally changing, it's just avoiding repeating it 3x | |
| llvm/test/Transforms/InstCombine/fneg.ll | ||
|---|---|---|
| 840 | The optimization doesn't seem to be kicking in for these tests? | |
| llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp | ||
|---|---|---|
| 2573 | Doesn't exponent need to by odd for this? I.e -(X ^ 2) != ((-X) ^ 2). | |
| llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp | ||
|---|---|---|
| 2573 | It’s not a square, it’s X * 2^N | |
| llvm/lib/Transforms/InstCombine/InstCombineInternal.h | ||
|---|---|---|
| 395 | Function needs a comment and a better name, since it doesn't just handle fmul and fdiv now. | |
Seems like 2 changes at once? The change to oneuse checks of (fneg (fmul/fdiv)) and the new transform. Maybe split?