Farzon Lotfi
76c4ba6a1d
Revert "[DirectX] Array GEPs need two indices (#142853)" and "Adjust bit cast instruction filter for DXIL Prepare pass (#142678)" (#143043)
- This reverts commit 9ab4c16042.
- This reverts commit 1d6e8ec17d.
Noticed a really weird behavior where release and debug builds have
different codegen for loads with geps after this PR. This is going to
take a minute to debug and figure out why so revert seems to make the
most sense.
```diff
diff --git a/llvm/test/CodeGen/DirectX/flatten-array.ll b/llvm/test/CodeGen/DirectX/flatten-array.ll
index 47d7b50cf018..efa9efeff13a 100644
--- a/llvm/test/CodeGen/DirectX/flatten-array.ll
+++ b/llvm/test/CodeGen/DirectX/flatten-array.ll
@@ -123,7 +123,8 @@ define void @gep_4d_test () {
@b = internal global [2 x [3 x [4 x i32]]] zeroinitializer, align 16
define void @global_gep_load() {
- ; CHECK: load i32, ptr getelementptr inbounds ([24 x i32], ptr @a.1dim, i32 0, i32 6), align 4
+ ; CHECK: %1 = getelementptr inbounds [24 x i32], ptr @a.1dim, i32 0, i32 6
+ ; CHECK-NEXT: %2 = load i32, ptr %1, align 4
; CHECK-NEXT: ret void
%1 = getelementptr inbounds [2 x [3 x [4 x i32]]], [2 x [3 x [4 x i32]]]* @a, i32 0, i32 0
%2 = getelementptr inbounds [3 x [4 x i32]], [3 x [4 x i32]]* %1, i32 0, i32 1
@@ -176,7 +177,8 @@ define void @global_incomplete_gep_chain(i32 %row, i32 %col) {
}
define void @global_gep_store() {
- ; CHECK: store i32 1, ptr getelementptr inbounds ([24 x i32], ptr @b.1dim, i32 0, i32 13), align 4
+ ; CHECK: %1 = getelementptr inbounds [24 x i32], ptr @b.1dim, i32 0, i32 13
+ ; CHECK-NEXT: store i32 1, ptr %1, align 4
; CHECK-NEXT: ret void
```
2025-06-05 20:41:37 -04:00
..
2025-05-30 13:22:25 -07:00
2025-05-27 22:57:01 -07:00
2025-06-04 11:21:22 -07:00
2025-05-30 10:01:57 -07:00
2025-05-27 22:57:01 -07:00
2025-05-29 11:44:34 -07:00
2025-05-27 22:57:01 -07:00
2025-05-30 13:22:25 -07:00
2025-01-21 17:33:45 -08:00
2025-01-21 17:33:45 -08:00
2025-05-23 08:22:36 -07:00
2025-01-21 17:33:45 -08:00
2024-10-18 21:16:50 +01:00
2024-11-06 11:32:07 -08:00
2025-01-21 17:33:45 -08:00
2025-05-27 22:57:01 -07:00
2025-05-30 08:16:19 -07:00
2025-05-30 08:16:19 -07:00
2025-05-27 22:57:01 -07:00
2025-05-27 22:57:01 -07:00
2025-05-30 08:16:19 -07:00
2025-05-30 08:16:19 -07:00
2025-05-27 22:57:01 -07:00
2025-05-27 22:57:01 -07:00
2025-05-27 22:57:01 -07:00
2025-01-21 17:33:45 -08:00
2025-02-25 16:09:41 -05:00
2025-01-21 17:33:45 -08:00
2025-01-21 17:33:45 -08:00
2025-01-21 17:33:45 -08:00
2025-01-21 17:33:45 -08:00
2025-05-27 22:57:01 -07:00
2025-05-27 22:57:01 -07:00
2025-03-16 09:47:48 +00:00
2024-11-14 23:34:07 -08:00
2025-02-25 16:09:41 -05:00
2025-04-14 10:34:15 -07:00
2025-04-14 10:34:15 -07:00
2025-04-14 10:34:15 -07:00
2025-04-14 10:34:15 -07:00
2025-05-17 10:38:24 -07:00
2025-05-17 10:38:24 -07:00
2025-05-17 10:38:24 -07:00
2025-05-17 10:38:24 -07:00
2024-11-06 11:32:07 -08:00
2025-01-21 17:33:45 -08:00
2025-04-14 10:34:15 -07:00
2024-12-02 12:08:14 -08:00
2025-01-21 17:33:45 -08:00
2025-01-15 15:36:50 -07:00
2025-01-15 15:36:50 -07:00
2024-11-06 07:31:39 -08:00
2024-11-06 07:31:39 -08:00
2025-06-05 20:41:37 -04:00
2025-06-05 20:41:37 -04:00
2025-01-21 17:33:45 -08:00
2025-01-21 17:33:45 -08:00
2025-01-21 17:33:45 -08:00
2025-01-21 17:33:45 -08:00
2025-01-21 17:33:45 -08:00
2024-12-01 22:31:40 -08:00
2025-03-24 16:17:19 -07:00
2025-01-21 17:33:45 -08:00
2025-01-21 17:33:45 -08:00
2025-05-08 09:13:26 -07:00
2025-05-20 10:26:58 -07:00
2025-05-22 10:43:00 -06:00
2025-04-17 09:02:05 -07:00
2025-04-29 16:07:44 -04:00
2025-06-04 15:31:15 -04:00
2025-03-17 20:33:02 -04:00
2025-06-04 21:28:43 -04:00
2025-04-22 14:25:33 -04:00
2025-05-19 09:34:58 -07:00
2025-04-30 17:09:28 -04:00
2025-05-29 10:12:09 -07:00
2025-06-05 20:41:37 -04:00
2024-11-13 16:36:24 -05:00
2025-01-21 17:33:45 -08:00
2025-01-21 17:33:45 -08:00
2024-11-06 11:32:07 -08:00
2025-01-21 17:33:45 -08:00
2025-04-28 12:43:38 -07:00
2024-10-18 21:16:50 +01:00
2025-04-14 10:34:15 -07:00
2025-04-10 16:40:05 -04:00
2025-05-27 22:57:01 -07:00
2025-05-27 22:57:01 -07:00
2025-05-27 22:57:01 -07:00
2025-05-27 22:57:01 -07:00
2025-03-29 00:45:11 -04:00
2025-05-27 22:57:01 -07:00
2025-05-27 22:57:01 -07:00
2025-01-21 17:33:45 -08:00
2025-01-21 17:33:45 -08:00
2025-01-21 17:33:45 -08:00
2025-04-08 08:54:10 +09:00
2025-06-05 20:41:37 -04:00
2024-11-13 16:36:24 -05:00
2024-12-18 16:33:49 -05:00
2024-11-13 16:36:24 -05:00
2025-05-27 14:23:29 -04:00
2025-03-17 20:33:02 -04:00
2025-01-21 17:33:45 -08:00
2025-01-21 17:33:45 -08:00
2025-01-21 17:33:45 -08:00
2025-01-21 17:33:45 -08:00
2025-01-21 17:33:45 -08:00
2025-01-21 17:33:45 -08:00
2024-11-06 11:32:07 -08:00
2025-01-21 17:33:45 -08:00
2025-01-21 17:33:45 -08:00
2025-01-21 17:33:45 -08:00
2025-03-05 17:04:10 -08:00
2025-03-05 17:04:10 -08:00
2025-01-21 17:33:45 -08:00
2025-01-21 17:33:45 -08:00
2025-01-21 17:33:45 -08:00
2025-04-21 10:26:27 -04:00
2025-04-11 14:32:44 -04:00
2024-12-17 17:32:50 -05:00
2025-01-21 17:33:45 -08:00
2025-01-21 17:33:45 -08:00
2025-01-21 17:33:45 -08:00
2025-01-21 17:33:45 -08:00
2025-01-27 23:26:56 -08:00
2025-01-16 10:35:23 -08:00
2025-01-21 17:33:45 -08:00
2025-01-21 17:33:45 -08:00
2025-01-21 17:33:45 -08:00