[all-commits] [llvm/llvm-project] adc26b: [ARM] Fix 8-bit immediate overflow in the instruct...

ZhiyaoMa98 via All-commits all-commits at lists.llvm.org
Thu Mar 10 15:17:13 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: adc26b4eaedc50f1b99d5af5c7e248966fced660
      https://github.com/llvm/llvm-project/commit/adc26b4eaedc50f1b99d5af5c7e248966fced660
  Author: Zhiyao Ma <zhiyao.ma.98 at gmail.com>
  Date:   2022-03-10 (Thu, 10 Mar 2022)

  Changed paths:
    M llvm/lib/Target/ARM/ARMFrameLowering.cpp
    M llvm/test/CodeGen/ARM/segmented-stacks.ll
    M llvm/test/CodeGen/Thumb/segmented-stacks.ll
    M llvm/test/CodeGen/Thumb2/segmented-stacks.ll

  Log Message:
  -----------
  [ARM] Fix 8-bit immediate overflow in the instruction of segmented stack prologue.

It fixes the overflow of 8-bit immediate field in the emitted
instruction that allocates large stacklet.

For thumb2 targets, load large immediate by a pair of movw and movt
instruction. For thumb1 and ARM targets, load large immediate by reading
from literal pool.

Differential Revision: https://reviews.llvm.org/D118545




More information about the All-commits mailing list