SuccessChanges

Summary

  1. Lexer::ReadToEndOfLine - fix Token uninitialised value warnings. NFCI. (details)
  2. [ConstantFold] Fold extractelement of getelementptr (details)
Commit f2132070d9a5a330400744aa14819344d0b44151 by llvm-dev
Lexer::ReadToEndOfLine - fix Token uninitialised value warnings. NFCI.
Use Token::startToken to initialize Token.
The file was modifiedclang/lib/Lex/Lexer.cpp
Commit 843c0adf0f7449a4167d20b399f70f6943d21d5e by jay.foad
[ConstantFold] Fold extractelement of getelementptr
Summary: Getelementptr has vector type if any of its operands are
vectors
(the scalar operands being implicitly broadcast to all vector elements).
Extractelement applied to a vector getelementptr can be folded by
applying the extractelement in turn to all of the vector operands.
Subscribers: hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D69379
The file was modifiedllvm/test/Analysis/ConstantFolding/gep-zeroinit-vector.ll
The file was modifiedllvm/test/Transforms/InstCombine/vec_demanded_elts.ll
The file was modifiedllvm/test/Transforms/LoopVectorize/X86/constant-fold.ll
The file was modifiedllvm/lib/IR/ConstantFold.cpp