| Issue |
126784
|
| Summary |
[DirectX] Register properties not initialized, causing UB in passes
|
| Labels |
backend:DirectX
|
| Assignees |
|
| Reporter |
llvm-beanz
|
The DirectX backend doesn't currently describe register types and call `computeRegisterProperties`, so when passes look up cost heuristics for registers they get odd values which can cause passes to do weird things.
For example @farzonl observed loop unrolling happening or not depending on if the underlying register weights were zero-initialized or garbage-initialized. Obviously not great.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs