Remove the call to setFlags in favour of creating the instruction with
the correct flags in the first place, so we don't have to explicitly
notify the observer.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
Comment Actions
No test case because I don't know how to test this in isolation. I found it when trying to enable CSE for the AMDGPU combiner passes, but there are still other problems that prevent that from working.
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp | ||
---|---|---|
5502 | There should be a buildOr |
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp | ||
---|---|---|
5502 | There is a buildOr but it doesn't take Flags because it's very unusual to set fast math flags on a bitwise operation. |
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp | ||
---|---|---|
5502 | It should probaly just have the flags operand |
There should be a buildOr