[all-commits] [llvm/llvm-project] bda8d1: [PatternMatch] Do not match constant expression trunc
Nikita Popov via All-commits
all-commits at lists.llvm.org
Mon Jun 3 05:28:10 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: bda8d1ad72fc72f21f6c536692594376d00db8b6
https://github.com/llvm/llvm-project/commit/bda8d1ad72fc72f21f6c536692594376d00db8b6
Author: Nikita Popov <npopov at redhat.com>
Date: 2024-06-03 (Mon, 03 Jun 2024)
Changed paths:
M llvm/include/llvm/IR/PatternMatch.h
M llvm/test/Transforms/InstCombine/icmp-of-trunc-ext.ll
Log Message:
-----------
[PatternMatch] Do not match constant expression trunc
Similar to the change previously made for binops, make m_Trunc()
only match instructions, not constant expressions. This is more
likely to cause a crash than do something useful.
Fixes crash reported at:
https://github.com/llvm/llvm-project/pull/92885#issuecomment-2145034670
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