aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2020-06-30 14:46:56 +0000
committerGuillaume Chatelet <gchatelet@google.com>2020-06-30 14:46:56 +0000
commitce404c8b854b18ca2aaa9529986b3eced73793a3 (patch)
tree9ba2e5aede6e74e7abca32e356a75346eed642c7
parente9c6b63d4a16c7955bf0e7d5c1ab4adbb9d385cc (diff)
downloadllvm-ce404c8b854b18ca2aaa9529986b3eced73793a3.zip
llvm-ce404c8b854b18ca2aaa9529986b3eced73793a3.tar.gz
llvm-ce404c8b854b18ca2aaa9529986b3eced73793a3.tar.bz2
[NFC] Remove dead code
Differential Revision: https://reviews.llvm.org/D81195
-rw-r--r--llvm/include/llvm/CodeGen/CallingConvLower.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/llvm/include/llvm/CodeGen/CallingConvLower.h b/llvm/include/llvm/CodeGen/CallingConvLower.h
index cc3a75c..8ebe788 100644
--- a/llvm/include/llvm/CodeGen/CallingConvLower.h
+++ b/llvm/include/llvm/CodeGen/CallingConvLower.h
@@ -221,9 +221,7 @@ private:
// ByValRegs[1] describes how "%t" is stored (Begin == r3, End == r4).
//
// In case of 8 bytes stack alignment,
- // ByValRegs may also contain information about wasted registers.
// In function shown above, r3 would be wasted according to AAPCS rules.
- // And in that case ByValRegs[1].Waste would be "true".
// ByValRegs vector size still would be 2,
// while "%t" goes to the stack: it wouldn't be described in ByValRegs.
//
@@ -233,19 +231,13 @@ private:
// 3. Argument analysis (LowerFormatArguments, for example). After
// some byval argument was analyzed, InRegsParamsProcessed is increased.
struct ByValInfo {
- ByValInfo(unsigned B, unsigned E, bool IsWaste = false) :
- Begin(B), End(E), Waste(IsWaste) {}
+ ByValInfo(unsigned B, unsigned E) : Begin(B), End(E) {}
+
// First register allocated for current parameter.
unsigned Begin;
// First after last register allocated for current parameter.
unsigned End;
-
- // Means that current range of registers doesn't belong to any
- // parameters. It was wasted due to stack alignment rules.
- // For more information see:
- // AAPCS, 5.5 Parameter Passing, Stage C, C.3.
- bool Waste;
};
SmallVector<ByValInfo, 4 > ByValRegs;