aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2025-07-22 07:51:01 +0100
committerGitHub <noreply@github.com>2025-07-22 07:51:01 +0100
commitd87bf79a236f25bccebca9ceaff7fb51399df052 (patch)
treeb0ed586fc1e8dc6fedcf46e69c00f8152c816fb0 /llvm/lib
parent069f0fea00d3caf41fb9c3eaf81ee918c5c63a51 (diff)
downloadllvm-d87bf79a236f25bccebca9ceaff7fb51399df052.zip
llvm-d87bf79a236f25bccebca9ceaff7fb51399df052.tar.gz
llvm-d87bf79a236f25bccebca9ceaff7fb51399df052.tar.bz2
[X86] isGuaranteedNotToBeUndefOrPoisonForTargetNode - X86ISD::GlobalBaseReg and X86ISD::Wrapper/WrapperRIP nodes are never poison (#149854)
Fixes #149841
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/X86ISelLowering.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 2b6c461..568a8c4 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -45059,6 +45059,10 @@ bool X86TargetLowering::isGuaranteedNotToBeUndefOrPoisonForTargetNode(
unsigned NumElts = DemandedElts.getBitWidth();
switch (Op.getOpcode()) {
+ case X86ISD::GlobalBaseReg:
+ case X86ISD::Wrapper:
+ case X86ISD::WrapperRIP:
+ return true;
case X86ISD::BLENDI:
case X86ISD::PSHUFD:
case X86ISD::UNPCKL: