Diff Detail
Event Timeline
lib/Target/AMDGPU/SIISelLowering.cpp | ||
---|---|---|
7402–7418 | Can this be done earlier before selection? |
lib/Target/AMDGPU/SIISelLowering.cpp | ||
---|---|---|
7402–7418 | Theoretically this can be done as early as in the AMDGPULibCalls. Unused old value can be replaced with undef. Why do you think it is better? I do not see any optimization which may be done based on that. At the same time before the selection we have to work with an intrinsic and after we are working with the instruction itself. Given that we may have several intrinsics leading here in the future that maybe less code potentially. |
lib/Target/AMDGPU/SIISelLowering.cpp | ||
---|---|---|
7402–7418 | I really dislike doing anything in the awkward machine-selected DAG, and it's usually a last resort if nothing else works. Doing in the DAG or on the final machine instruction would be better if you think a later pass besides instcombine is helpful. Plus more code in the DAG is more code that needs to be rewritten on machine instructions in the future |
Can this be done earlier before selection?