[llvm] [X86][CostModel] Free a clean narrow zext used as a GEP index (PR #216256)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 14 00:40:33 PDT 2026


================
@@ -51,12 +51,14 @@
 #include "X86TargetTransformInfo.h"
 #include "llvm/ADT/SmallBitVector.h"
 #include "llvm/Analysis/TargetTransformInfo.h"
+#include "llvm/Analysis/ValueTracking.h"
 #include "llvm/CodeGen/Analysis.h"
 #include "llvm/CodeGen/BasicTTIImpl.h"
 #include "llvm/CodeGen/CostTable.h"
 #include "llvm/CodeGen/TargetLowering.h"
 #include "llvm/IR/InstIterator.h"
 #include "llvm/IR/IntrinsicInst.h"
+#include "llvm/Support/KnownBits.h"
----------------
RKSimon wrote:

are these necessary? we already have KnownBits and computeKnownBits uses in this file and its likely a future iwyu pass will just remove them again.

https://github.com/llvm/llvm-project/pull/216256


More information about the llvm-commits mailing list