diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2025-07-22 07:51:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-22 07:51:01 +0100 |
commit | d87bf79a236f25bccebca9ceaff7fb51399df052 (patch) | |
tree | b0ed586fc1e8dc6fedcf46e69c00f8152c816fb0 /llvm/lib | |
parent | 069f0fea00d3caf41fb9c3eaf81ee918c5c63a51 (diff) | |
download | llvm-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.cpp | 4 |
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: |