When collecting trivially rematerializable defs, skip any subreg defs. We do not want to sink these.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I incorrectly assumed when defining a subreg, there would be multiple defs for the other parts of the reg so checking hasOneDef() would be sufficient. However in this case, there was a single def of a subreg undef %23.sub1 without any def for sub0.
Comment Actions
Also retitle the change.
llvm/lib/Target/AMDGPU/GCNSchedStrategy.cpp | ||
---|---|---|
810 | I would still pass the subreg here. It will be always 0, but not passing it 'spaghettifies' code. |
I would still pass the subreg here. It will be always 0, but not passing it 'spaghettifies' code.