diff options
author | David Sherwood <david.sherwood@arm.com> | 2022-01-18 08:40:01 +0000 |
---|---|---|
committer | David Sherwood <david.sherwood@arm.com> | 2022-01-18 08:40:20 +0000 |
commit | f4515ab858ec3ac87ee63aacdf29647bc64b0de4 (patch) | |
tree | 1f456d4ee4fd8eb0ef8a59964ec7e486ff98cca2 /llvm/lib/CodeGen/CodeGenPrepare.cpp | |
parent | 4e1c2077262e0e7c708da8077874c2c022a86adc (diff) | |
download | llvm-f4515ab858ec3ac87ee63aacdf29647bc64b0de4.zip llvm-f4515ab858ec3ac87ee63aacdf29647bc64b0de4.tar.gz llvm-f4515ab858ec3ac87ee63aacdf29647bc64b0de4.tar.bz2 |
Revert "[CodeGen][AArch64] Ensure isSExtCheaperThanZExt returns true for negative constants"
This reverts commit 197f3c0deb76951315118ef13937b67ea9cbd5aa.
Reverting after miscompilation errors discovered with ffmpeg.
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r-- | llvm/lib/CodeGen/CodeGenPrepare.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp index 8053f1d..747f4e4 100644 --- a/llvm/lib/CodeGen/CodeGenPrepare.cpp +++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp @@ -7004,7 +7004,7 @@ bool CodeGenPrepare::optimizeSwitchInst(SwitchInst *SI) { // matching the argument extension instead. Instruction::CastOps ExtType = Instruction::ZExt; // Some targets prefer SExt over ZExt. - if (TLI->isSExtCheaperThanZExt(OldVT, RegType, SDValue())) + if (TLI->isSExtCheaperThanZExt(OldVT, RegType)) ExtType = Instruction::SExt; if (auto *Arg = dyn_cast<Argument>(Cond)) { |