[all-commits] [llvm/llvm-project] b3be14: [RISCV] Use LiveIntervals::extendToIndices to exte...
Luke Lau via All-commits
all-commits at lists.llvm.org
Wed Jul 3 01:01:44 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b3be14896770b31c18f4ec32b05b334dc811f356
https://github.com/llvm/llvm-project/commit/b3be14896770b31c18f4ec32b05b334dc811f356
Author: Luke Lau <luke at igalia.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
M llvm/test/CodeGen/RISCV/rvv/vsetvli-insert-crossbb.ll
Log Message:
-----------
[RISCV] Use LiveIntervals::extendToIndices to extend AVL in insertVSETVLI (#97512)
In #96200 we handled extending AVL LiveIntervals across basic blocks,
which fixed a crash in a test case in
133ab9a8c82a31549f060da33fd7e14f1d7f39fd.
This was done by manually adding a single segment to the LiveInterval to
extend it from AVL def -> inserted vsetvli, but in hindsight this was
too simple and fails to handle cases where the vsetlvi is located before
the AVL def.
This patch fixes this by using LiveIntervals::extendToIndices instead
which can handle these cases.
(The crash that this fixes is separate from the crash in #97264)
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