diff options
author | Luke Lau <luke@igalia.com> | 2025-04-17 16:31:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-17 16:31:14 +0200 |
commit | 41675fa5b88dc703b3b1d96de668281582f21f3b (patch) | |
tree | 2860077213d84fe9df2882218f8f7ee4e6134aae /clang/lib/Frontend/CreateInvocationFromCommandLine.cpp | |
parent | 45f27167bcd312a8691365a63719fab136972692 (diff) | |
download | llvm-41675fa5b88dc703b3b1d96de668281582f21f3b.zip llvm-41675fa5b88dc703b3b1d96de668281582f21f3b.tar.gz llvm-41675fa5b88dc703b3b1d96de668281582f21f3b.tar.bz2 |
[VPlan] Simplify vp.merge true, (or x, y), x -> vp.merge y, true, x (#135017)
With EVL tail folding an AnyOf reduction will emit an i1 vp.merge like
vp.merge true, (or phi, cond), phi, evl
We can remove the or and optimise this to
vp.merge cond, true, phi, evl
Which makes it slightly easier to pattern match in #134898.
This also adds a pattern matcher for calls to help match this.
Blended AnyOf reductions will use an and instead of an or, which we may
also be able to simplify in a later patch.
Diffstat (limited to 'clang/lib/Frontend/CreateInvocationFromCommandLine.cpp')
0 files changed, 0 insertions, 0 deletions