This cleans up all LoadInst creation in LLVM to explicitly pass the
value type rather than deriving it from the pointer's element-type.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
llvm/test/CodeGen/AMDGPU/lower-kernargs.ll | ||
---|---|---|
309–311 ↗ | (On Diff #183344) | I haven't figured out why these tests changed - could you explain it? |
llvm/tools/bugpoint/Miscompilation.cpp | ||
884 ↗ | (On Diff #183344) | This doesn't immediately make sense to me - can you load a function type? What's the resulting value type? (I guess I'm misreading this somehow) |
llvm/test/CodeGen/AMDGPU/lower-kernargs.ll | ||
---|---|---|
309–311 ↗ | (On Diff #183344) | This is due to the change in lvm/lib/Target/AMDGPU/AMDGPULowerKernelArguments.cpp This diff hilighting here is confusing, but all that's actually changed is that an extraneous bitcast was removed. It used to go: In the new version, all that's different is that the first bitcast is deleted, and the lit match-names are different. |
llvm/tools/bugpoint/Miscompilation.cpp | ||
884 ↗ | (On Diff #183344) | No, this change is wrong, it should've been F->getType(), to match line 867. I guess this codepath is untested, because if it was run, it'd assert fail in the LoadInst constructor. |
llvm/test/CodeGen/AMDGPU/lower-kernargs.ll | ||
---|---|---|
309–311 ↗ | (On Diff #183344) | Ah, thanks! (I hadn't looked closely enough to see the semantics of the change, was just generally surprised at any test changes - but totally make sense, thanks for explaining) |
llvm/tools/bugpoint/Miscompilation.cpp | ||
884 ↗ | (On Diff #183344) | Ugh. Pity - this file goes back to 2002, so I imagine it came in in the Time Before Testing (not really - but the older stuff tends to be a bit less well tested, especially in side utilities like this) Ah well. Thanks! |