Most portions of InstCombine properly propagate fast math flags, but apparently the vector secularization section was overlooked.
Diff Detail
Diff Detail
Event Timeline
lib/Transforms/InstCombine/InstCombineVectorOps.cpp | ||
---|---|---|
108–110 | Should a BinaryOperator::CreateWithFlags be added? It already has CreateNSW etc. |
lib/Transforms/InstCombine/InstCombineVectorOps.cpp | ||
---|---|---|
108–110 | It would have to be something like BinaryOperator::CreateWithCopiedFlags, because there's not simple "give me all the flags" methods exposed on BinaryOperator. Seems a little awkward, but maybe it's still better? |
lib/Transforms/InstCombine/InstCombineVectorOps.cpp | ||
---|---|---|
108–110 | Probably. It seems like a mess to have all of these separate copies everywhere this is needed |
Should a BinaryOperator::CreateWithFlags be added? It already has CreateNSW etc.