[clang] [llvm] [AVR] Fix Avr indvar detection and strength reduction (missed optimization) (PR #152028)

Ben Shi via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 4 18:58:55 PDT 2025


================
@@ -57,7 +57,8 @@ class LLVM_LIBRARY_VISIBILITY AVRTargetInfo : public TargetInfo {
     Int16Type = SignedInt;
     Char32Type = UnsignedLong;
     SigAtomicType = SignedChar;
-    resetDataLayout("e-P1-p:16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-a:8");
+    resetDataLayout(
+        "e-P1-p:16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-n16:8-a:8");
----------------
benshi001 wrote:

Sub optimal results are also accepted. We should not introduce other issues for an extreme optimization.

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


More information about the llvm-commits mailing list