llvm-project/llvm/lib/Transforms
Roman Lebedev 0bde7c6527 [InstCombine] Shift amount reassociation: fixup constantexpr handling (PR42484)
I was actually wondering if there was some nicer way than m_Value()+cast,
but apparently what i was really "subconsciously" thinking about
was correctness issue.

hasNoUnsignedWrap()/hasNoUnsignedWrap() exist for Instruction,
not for BinaryOperator, so let's just use m_Instruction(),
thus both avoiding a cast, and a crash.

Fixes https://bugs.llvm.org/show_bug.cgi?id=42484,
      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=15587

llvm-svn: 364915
2019-07-02 12:54:48 +00:00
..
AggressiveInstCombine Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Coroutines Simplify std::lower_bound with llvm::{bsearch,lower_bound}. NFC 2019-06-21 05:40:31 +00:00
Hello Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
IPO [Attributor] Deducing existing nounwind attribute. 2019-06-27 11:27:54 +00:00
InstCombine [InstCombine] Shift amount reassociation: fixup constantexpr handling (PR42484) 2019-07-02 12:54:48 +00:00
Instrumentation hwasan: Remove the old frame descriptor mechanism. 2019-06-28 17:53:26 +00:00
ObjCARC [ObjC][ARC] Delete ObjC runtime calls on global variables annotated 2019-06-14 22:06:32 +00:00
Scalar [SimpleLoopUnswitch] Implement handling of prof branch_weights metadata for SwitchInst 2019-07-01 08:43:53 +00:00
Utils [PGO] Update ICP pass for recent byval type changes 2019-07-01 22:43:39 +00:00
Vectorize Revert [SLP] Look-ahead operand reordering heuristic. 2019-07-01 21:10:43 +00:00
CMakeLists.txt Another try to commit 323321 (aggressive instruction combine). 2018-01-25 12:06:32 +00:00
LLVMBuild.txt Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00