Skip to content

Commit 6caf796

Browse files
PikachuHyAlanza
authored andcommitted
Revert "[CIR] fix getTypeSizeInBits with fp80 and fp128" (llvm#1089)
Reverts llvm/clangir#1058
1 parent 646eea2 commit 6caf796

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

clang/lib/CIR/Dialect/IR/CIRTypes.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -679,10 +679,7 @@ const llvm::fltSemantics &FP80Type::getFloatSemantics() const {
679679
llvm::TypeSize
680680
FP80Type::getTypeSizeInBits(const mlir::DataLayout &dataLayout,
681681
mlir::DataLayoutEntryListRef params) const {
682-
// The size of FP80Type should be 16 bytes, or 128 bits. The lower 80 bits
683-
// take part in the value representation and the higher 48 bits are just
684-
// paddings.
685-
return llvm::TypeSize::getFixed(128);
682+
return llvm::TypeSize::getFixed(16);
686683
}
687684

688685
uint64_t FP80Type::getABIAlignment(const mlir::DataLayout &dataLayout,
@@ -697,7 +694,7 @@ const llvm::fltSemantics &FP128Type::getFloatSemantics() const {
697694
llvm::TypeSize
698695
FP128Type::getTypeSizeInBits(const mlir::DataLayout &dataLayout,
699696
mlir::DataLayoutEntryListRef params) const {
700-
return llvm::TypeSize::getFixed(128);
697+
return llvm::TypeSize::getFixed(16);
701698
}
702699

703700
uint64_t FP128Type::getABIAlignment(const mlir::DataLayout &dataLayout,

0 commit comments

Comments
 (0)