This was adding confusing global state which was shadowed most of the
time.
Details
Details
Diff Detail
Diff Detail
Event Timeline
llvm/lib/Target/AMDGPU/AMDGPULibCalls.cpp | ||
---|---|---|
113–120 | What do you think about making the functions static members ? NIT: ReplaceInstWithInst also takes the name. Maybe we could use that function instead of the two calls? |
Comment Actions
Make static
llvm/lib/Target/AMDGPU/AMDGPULibCalls.cpp | ||
---|---|---|
113–120 | ReplaceInstWithInst implies caring about the iterator. Currently this is too far removed from the iterator to care |
What do you think about making the functions static members ?
NIT: ReplaceInstWithInst also takes the name. Maybe we could use that function instead of the two calls?