[all-commits] [llvm/llvm-project] fae8df: [DirectX] Fix GEP flattening with 0-indexed GEPs o...
Deric C. via All-commits
all-commits at lists.llvm.org
Thu Jul 17 14:52:16 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fae8df2b82692ec8f69ba578847713f0da6e1ddc
https://github.com/llvm/llvm-project/commit/fae8df2b82692ec8f69ba578847713f0da6e1ddc
Author: Deric C. <cheung.deric at gmail.com>
Date: 2025-07-17 (Thu, 17 Jul 2025)
Changed paths:
M llvm/lib/Target/DirectX/DXILFlattenArrays.cpp
M llvm/test/CodeGen/DirectX/flatten-array.ll
Log Message:
-----------
[DirectX] Fix GEP flattening with 0-indexed GEPs on global variables (#149211)
Fixes #149179
The issue is that `Builder.CreateGEP` does not return a GEP Instruction
or GEP ContantExpr when the pointer operand is a global variable and all
indices are constant zeroes.
This PR ensures that a GEP instruction is created if `Builder.CreateGEP`
did not return a GEP.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list