The motivation for this was to propagate fast-math flags like nnan and
ninf on vector floating point operations to the corresponding scalar
operations to take advantage of follow-on optimizations. But I think
the same argument applies to all of our IR flags: if they apply to the
vector operation then they also apply to all the individual scalar
operations, and they might enable follow-on optimizations.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 33676 Build 33675: arc lint + arc unit
Event Timeline
llvm/test/Transforms/Scalarizer/basic.ll | ||
---|---|---|
531 | Can you also add a test for fneg, and an intrinsic or 2 |
llvm/test/Transforms/Scalarizer/basic.ll | ||
---|---|---|
531 | fneg: done. Intrinsics are CallInsts which don't have any IR flags. |
llvm/test/Transforms/Scalarizer/basic.ll | ||
---|---|---|
531 | Yes they do. Also, fcmp is another strange case to test |
llvm/test/Transforms/Scalarizer/basic.ll | ||
---|---|---|
531 | Good point. Done. |
Can you also add a test for fneg, and an intrinsic or 2